Browse Source

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

totalwebcasting
Sergey M․ 8 years ago
parent
commit
8a00ea567b
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/nationalgeographic.py

+ 2
- 2
youtube_dl/extractor/nationalgeographic.py View File

@ -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))

Loading…
Cancel
Save