]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[canalplus] Add another video id regex (closes #11399)
authorSergey M․ <dstftw@gmail.com>
Sat, 10 Dec 2016 17:45:27 +0000 (00:45 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 10 Dec 2016 17:45:27 +0000 (00:45 +0700)
youtube_dl/extractor/canalplus.py

index 1c3c41d26619ec2fa347c4a75093b2a1cf7003a2..10cf165bc47c0158720d59cde6929f7369d9c8de 100644 (file)
@@ -105,7 +105,8 @@ class CanalplusIE(InfoExtractor):
         webpage = self._download_webpage(url, display_id)
         video_id = self._search_regex(
             [r'<canal:player[^>]+?videoId=(["\'])(?P<id>\d+)',
-             r'id=["\']canal_video_player(?P<id>\d+)'],
+             r'id=["\']canal_video_player(?P<id>\d+)',
+             r'data-video=["\'](?P<id>\d+)'],
             webpage, 'video id', group='id')
 
         info_url = self._VIDEO_INFO_TEMPLATE % (site_id, video_id)