youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 8a00ea567b88ea240c6fe672387cc5cc482495fe
parent 8895be01fc2d3774aa0b9b000af20c22903d3391
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu,  4 Aug 2016 23:21:04 +0700

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

Diffstat:
Myoutube_dl/extractor/nationalgeographic.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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))