mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 16:36:48 +00:00
[facebook] Fix typo and break when found video_data (Closes #10048)
This commit is contained in:
parent
c03adf90bd
commit
6daf34a045
@ -231,11 +231,13 @@ class FacebookIE(InfoExtractor):
|
|||||||
continue
|
continue
|
||||||
if isinstance(f, dict):
|
if isinstance(f, dict):
|
||||||
f = [f]
|
f = [f]
|
||||||
if isinstance(f, list):
|
if not isinstance(f, list):
|
||||||
continue
|
continue
|
||||||
if f[0].get('video_id') == video_id:
|
if f[0].get('video_id') == video_id:
|
||||||
video_data = video_data_candidate
|
video_data = video_data_candidate
|
||||||
break
|
break
|
||||||
|
if video_data:
|
||||||
|
break
|
||||||
|
|
||||||
def video_data_list2dict(video_data):
|
def video_data_list2dict(video_data):
|
||||||
ret = {}
|
ret = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user