From e175715193125db923919fbc584a744851ef5102 Mon Sep 17 00:00:00 2001 From: midas02 Date: Mon, 17 Apr 2017 17:41:45 +0200 Subject: [PATCH] Identify direct video links Detect vtm.be and medialaancdn.be hosted mp4 videos Ex: http://www.gva.be/cnt/dmf20170105_02660060/nieuwe-vtm-programma-groeten-uit-groeit-uit-tot-nostalgische-hit --- youtube_dl/extractor/mediahuis.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/youtube_dl/extractor/mediahuis.py b/youtube_dl/extractor/mediahuis.py index ea90db214..7399cf847 100644 --- a/youtube_dl/extractor/mediahuis.py +++ b/youtube_dl/extractor/mediahuis.py @@ -170,6 +170,11 @@ class MediahuisIE(InfoExtractor): url_type = 'url_transparent' # return self.url_result(video_url, 'Medialaan') + # Source: flvpd.vtm.be/video.medialaancdn.be + iframe_m = re.search(r']+videoUrl:\'(.+?)\'', webpage) + if iframe_m: + video_url = (iframe_m.group(1)) + info = { 'url': video_url, 'id': video_id,