From: Jaime Marquínez Ferrándiz Date: Thu, 10 Mar 2016 14:17:04 +0000 (+0100) Subject: [facebook] Don't override variable in list comprehension X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=f6f6217a98adc07c41f7a45a9068aeaf706ad862;p=youtube-dl.git [facebook] Don't override variable in list comprehension --- diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 49231d3e9..5e8589479 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -290,8 +290,8 @@ class FacebookIE(InfoExtractor): if '/posts/' in url: entries = [ - self.url_result('facebook:%s' % video_id, FacebookIE.ie_key()) - for video_id in self._parse_json( + self.url_result('facebook:%s' % vid, FacebookIE.ie_key()) + for vid in self._parse_json( self._search_regex( r'(["\'])video_ids\1\s*:\s*(?P\[.+?\])', webpage, 'video ids', group='ids'),