Browse Source

[facebook] Fix typo and break when found video_data (Closes #10048)

totalwebcasting
Sergey M․ 8 years ago
parent
commit
6daf34a045
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube_dl/extractor/facebook.py

+ 3
- 1
youtube_dl/extractor/facebook.py View File

@ -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 = {}


Loading…
Cancel
Save