From a6c0097cc659925b9d58f47548b6b2aec7c5d730 Mon Sep 17 00:00:00 2001 From: midas02 Date: Tue, 18 Apr 2017 05:44:33 +0200 Subject: [PATCH] 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 --- youtube_dl/extractor/medialaan.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/medialaan.py b/youtube_dl/extractor/medialaan.py index 6e067474b..9834ab9c9 100644 --- a/youtube_dl/extractor/medialaan.py +++ b/youtube_dl/extractor/medialaan.py @@ -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'],