1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-25 07:47:55 +01:00

[natgeo:episodeguide] Do not shadow url from outer scope

This commit is contained in:
Sergey M․ 2016-08-04 23:21:04 +07:00
parent 8895be01fc
commit 8a00ea567b
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -161,8 +161,8 @@ class NationalGeographicEpisodeGuideIE(ThePlatformIE):
r'<div[^>]+class="select-seasons[^"]*".*?<a[^>]*>(.*?)</a>', r'<div[^>]+class="select-seasons[^"]*".*?<a[^>]*>(.*?)</a>',
webpage, 'selected season') webpage, 'selected season')
entries = [ entries = [
self.url_result(self._proto_relative_url(url), 'NationalGeographic') self.url_result(self._proto_relative_url(entry_url), 'NationalGeographic')
for url in re.findall('(?s)<div[^>]+class="col-inner"[^>]*?>.*?<a[^>]+href="([^"]+)"', webpage)] for entry_url in re.findall('(?s)<div[^>]+class="col-inner"[^>]*?>.*?<a[^>]+href="([^"]+)"', webpage)]
return self.playlist_result( return self.playlist_result(
entries, '%s-%s' % (display_id, selected_season.lower().replace(' ', '-')), entries, '%s-%s' % (display_id, selected_season.lower().replace(' ', '-')),
'%s - %s' % (show, selected_season)) '%s - %s' % (show, selected_season))