1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 00:37:41 +00:00

[facebook] Don't override variable in list comprehension

This commit is contained in:
Jaime Marquínez Ferrándiz 2016-03-10 15:17:04 +01:00
parent 31db8709bf
commit f6f6217a98

View 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'),