]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[facebook] Don't override variable in list comprehension
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 10 Mar 2016 14:17:04 +0000 (15:17 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 10 Mar 2016 14:17:04 +0000 (15:17 +0100)
youtube_dl/extractor/facebook.py

index 49231d3e9e74a82e96121424ed8043607dab8b54..5e8589479d4ce5ae57240c4432494b8348b5523a 100644 (file)
@@ -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<ids>\[.+?\])',
                         webpage, 'video ids', group='ids'),