From 89a3ee189415b73548040963c0a75a13e7a514e9 Mon Sep 17 00:00:00 2001 From: Alexander Seiler Date: Mon, 19 Mar 2018 17:26:54 +0100 Subject: [PATCH] [canalc2.tv] Fix broken information extractor --- youtube_dl/extractor/canalc2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/canalc2.py b/youtube_dl/extractor/canalc2.py index acd87e371..fcf6b75a0 100644 --- a/youtube_dl/extractor/canalc2.py +++ b/youtube_dl/extractor/canalc2.py @@ -32,7 +32,9 @@ class Canalc2IE(InfoExtractor): 'http://www.canalc2.tv/video/%s' % video_id, video_id) formats = [] - for _, video_url in re.findall(r'file\s*=\s*(["\'])(.+?)\1', webpage): + file_links = re.findall(r'file\s*=\s*(["\'])(.+?)\1', webpage) + src_links = re.findall(r'rtmp://[^/]+/(?P.+/))(?Pmp4:.+)$', video_url)