From: Sergey M․ Date: Tue, 6 Oct 2015 17:08:28 +0000 (+0600) Subject: [canalplus] Extend video id regex (Closes #7076) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=83a56686944225137ce646748b8e940a21584941;p=youtube-dl [canalplus] Extend video id regex (Closes #7076) --- diff --git a/youtube_dl/extractor/canalplus.py b/youtube_dl/extractor/canalplus.py index 57e0cda2c..c0ca3a0fa 100644 --- a/youtube_dl/extractor/canalplus.py +++ b/youtube_dl/extractor/canalplus.py @@ -78,7 +78,8 @@ class CanalplusIE(InfoExtractor): if video_id is None: webpage = self._download_webpage(url, display_id) video_id = self._search_regex( - r']+?videoId="(\d+)"', webpage, 'video id') + [r']+?videoId=(["\'])(?P\d+)', r'id=["\']canal_video_player(?P\d+)'], + webpage, 'video id', group='id') info_url = self._VIDEO_INFO_TEMPLATE % (site_id, video_id) doc = self._download_xml(info_url, video_id, 'Downloading video XML')