diff options
author | Sergey M․ <[email protected]> | 2016-07-09 21:25:07 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2016-07-09 21:25:07 +0700 |
commit | 6daf34a0457cdb3b657cc01997ce5197dab91047 (patch) | |
tree | b2b707b3ea10ad2fdd1970ca4f2e046881f7b286 /youtube_dl/extractor/facebook.py | |
parent | c03adf90bd92ceba55f99cf8f3b61e6199166486 (diff) | |
download | youtube-dl-6daf34a0457cdb3b657cc01997ce5197dab91047.tar.gz youtube-dl-6daf34a0457cdb3b657cc01997ce5197dab91047.zip |
[facebook] Fix typo and break when found video_data (Closes #10048)
Diffstat (limited to 'youtube_dl/extractor/facebook.py')
-rw-r--r-- | youtube_dl/extractor/facebook.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 0d43acc4a..cdb093262 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -231,11 +231,13 @@ class FacebookIE(InfoExtractor): continue if isinstance(f, dict): f = [f] - if isinstance(f, list): + if not isinstance(f, list): continue if f[0].get('video_id') == video_id: video_data = video_data_candidate break + if video_data: + break def video_data_list2dict(video_data): ret = {} |