From: Sergey M․ Date: Thu, 4 Aug 2016 16:21:04 +0000 (+0700) Subject: [natgeo:episodeguide] Do not shadow url from outer scope X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=8a00ea567b88ea240c6fe672387cc5cc482495fe;p=youtube-dl.git [natgeo:episodeguide] Do not shadow url from outer scope --- diff --git a/youtube_dl/extractor/nationalgeographic.py b/youtube_dl/extractor/nationalgeographic.py index fe43d4bc8..4bffcf704 100644 --- a/youtube_dl/extractor/nationalgeographic.py +++ b/youtube_dl/extractor/nationalgeographic.py @@ -161,8 +161,8 @@ class NationalGeographicEpisodeGuideIE(ThePlatformIE): r']+class="select-seasons[^"]*".*?]*>(.*?)', webpage, 'selected season') entries = [ - self.url_result(self._proto_relative_url(url), 'NationalGeographic') - for url in re.findall('(?s)]+class="col-inner"[^>]*?>.*?]+href="([^"]+)"', webpage)] + self.url_result(self._proto_relative_url(entry_url), 'NationalGeographic') + for entry_url in re.findall('(?s)]+class="col-inner"[^>]*?>.*?]+href="([^"]+)"', webpage)] return self.playlist_result( entries, '%s-%s' % (display_id, selected_season.lower().replace(' ', '-')), '%s - %s' % (show, selected_season))