projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d26ebe9
)
[canalplus] Fix video id extraction (Closes #2645)
author
Sergey M․
<dstftw@gmail.com>
Fri, 28 Mar 2014 11:47:15 +0000
(18:47 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 28 Mar 2014 11:47:15 +0000
(18:47 +0700)
youtube_dl/extractor/canalplus.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/canalplus.py
b/youtube_dl/extractor/canalplus.py
index 7cdcd8399a8cabcd17ef7af8d89ba9052e9f8901..49dfd881e34ed41ccd83ff72a0ae2ae977f93d90 100644
(file)
--- a/
youtube_dl/extractor/canalplus.py
+++ b/
youtube_dl/extractor/canalplus.py
@@
-28,7
+28,7
@@
class CanalplusIE(InfoExtractor):
video_id = mobj.groupdict().get('id')
if video_id is None:
webpage = self._download_webpage(url, mobj.group('path'))
- video_id = self._search_regex(r'
videoId = "(\d+)";
', webpage, u'video id')
+ video_id = self._search_regex(r'
<canal:player videoId="(\d+)"
', webpage, u'video id')
info_url = self._VIDEO_INFO_TEMPLATE % video_id
doc = self._download_xml(info_url,video_id,
u'Downloading video info')