projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebf1b29
)
[francetv] Improve video id regex (Closes #8563)
author
Sergey M․
<dstftw@gmail.com>
Thu, 18 Feb 2016 16:09:21 +0000
(22:09 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 18 Feb 2016 16:09:21 +0000
(22:09 +0600)
youtube_dl/extractor/francetv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/francetv.py
b/youtube_dl/extractor/francetv.py
index 8e60cf60f7f7be74c751c037bcae31fb0e1f6510..3f4ac30939cd38a7294f0d8eb815cb58c6f2fbcd 100644
(file)
--- a/
youtube_dl/extractor/francetv.py
+++ b/
youtube_dl/extractor/francetv.py
@@
-289,7
+289,7
@@
class FranceTVIE(FranceTVBaseInfoExtractor):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
video_id, catalogue = self._html_search_regex(
- r'
href=
"http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',
+ r'
(?:href=|player\.setVideo\(\s*)
"http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',
webpage, 'video ID').split('@')
return self._extract_video(video_id, catalogue)