Fix broken videos

A rough trick to get around the two different json styles medialaan seems to be using.
Fix for these example videos:
https://vtmkzoom.be/video?aid=45724
https://vtmkzoom.be/video?aid=45425
This commit is contained in:
midas02 2017-04-18 05:44:33 +02:00 committed by GitHub
parent bf1b87cd91
commit a6c0097cc6

View File

@ -146,6 +146,8 @@ class MedialaanIE(InfoExtractor):
video_id, transform_source=lambda s: '[%s]' % s, fatal=False)
if player:
video = player[-1]
if video['videoUrl'] == "https":
return self.url_result(video['url'], 'Medialaan')
info = {
'id': video_id,
'url': video['videoUrl'],