A feature-rich command-line audio/video downloader
[natgeo:episodeguide] Do not shadow url from outer scope
Sergey M․8a00ea567b88
diff --git a/youtube_dl/extractor/nationalgeographic.py b/youtube_dl/extractor/nationalgeographic.pyindex fe43d4bc8b..4bffcf704d 100644--- a/youtube_dl/extractor/nationalgeographic.py+++ b/youtube_dl/extractor/nationalgeographic.py@@ -161,8 +161,8 @@ class NationalGeographicEpisodeGuideIE(ThePlatformIE):r'<div[^>]+class="select-seasons[^"]*".*?<a[^>]*>(.*?)</a>',webpage, 'selected season')entries = [- self.url_result(self._proto_relative_url(url), 'NationalGeographic')- for url in re.findall('(?s)<div[^>]+class="col-inner"[^>]*?>.*?<a[^>]+href="([^"]+)"', webpage)]+ self.url_result(self._proto_relative_url(entry_url), 'NationalGeographic')+ for entry_url in re.findall('(?s)<div[^>]+class="col-inner"[^>]*?>.*?<a[^>]+href="([^"]+)"', webpage)]return self.playlist_result(entries, '%s-%s' % (display_id, selected_season.lower().replace(' ', '-')),'%s - %s' % (show, selected_season))