diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-08-04 23:21:04 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-08-04 23:21:04 +0700 |
commit | 8a00ea567b88ea240c6fe672387cc5cc482495fe (patch) | |
tree | c525e280c13ac7ac9d4a810e7e00f526605141fc | |
parent | 8895be01fc2d3774aa0b9b000af20c22903d3391 (diff) |
[natgeo:episodeguide] Do not shadow url from outer scope
-rw-r--r-- | youtube_dl/extractor/nationalgeographic.py | 4 |
1 files changed, 2 insertions, 2 deletions
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'<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)) |