projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
655cb54
)
[canalplus] Add another video id regex (closes #11399)
author
Sergey M․
<dstftw@gmail.com>
Sat, 10 Dec 2016 17:45:27 +0000
(
00:45
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 10 Dec 2016 17:45:27 +0000
(
00:45
+0700)
youtube_dl/extractor/canalplus.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/canalplus.py
b/youtube_dl/extractor/canalplus.py
index 1c3c41d26619ec2fa347c4a75093b2a1cf7003a2..10cf165bc47c0158720d59cde6929f7369d9c8de 100644
(file)
--- a/
youtube_dl/extractor/canalplus.py
+++ b/
youtube_dl/extractor/canalplus.py
@@
-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)