- changed video settings to be mandatory

This commit is contained in:
carsten demming 2018-02-23 20:13:06 +01:00
parent f9990314ef
commit dfa7291884

View File

@ -29,7 +29,7 @@ class VidelloIE(InfoExtractor):
r'vidello_' + video_id + '_settings\s*=\s*({.+});', webpage, 'vidello settings'), video_id) r'vidello_' + video_id + '_settings\s*=\s*({.+});', webpage, 'vidello settings'), video_id)
video_url = "" video_url = ""
video_sources = vidello_settings.get('player').get('clip').get('sources') or {} video_sources = vidello_settings['player']['clip']['sources']
for curr_entry in video_sources: for curr_entry in video_sources:
if curr_entry['type'] == "video/mp4": if curr_entry['type'] == "video/mp4":
video_url = "http://" + curr_entry["src"][2:] video_url = "http://" + curr_entry["src"][2:]