diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 0d43acc4ac..cdb093262a 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -231,11 +231,13 @@ def _extract_from_url(self, url, video_id, fatal_if_no_video=True): 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 = {}