projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51f2863
)
[culturebox] Improve video id extraction (closes #14947)
author
Sergey M․
<dstftw@gmail.com>
Sun, 10 Dec 2017 15:46:21 +0000
(22:46 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 10 Dec 2017 15:46:21 +0000
(22:46 +0700)
youtube_dl/extractor/francetv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/francetv.py
b/youtube_dl/extractor/francetv.py
index 80c5970156212c6ea79f289008b77a1bb5310ae2..095bb3954c523852be8d7d09d498d324d429c826 100644
(file)
--- a/
youtube_dl/extractor/francetv.py
+++ b/
youtube_dl/extractor/francetv.py
@@
-356,6
+356,7
@@
class CultureboxIE(FranceTVBaseInfoExtractor):
raise ExtractorError('Video %s is not available' % name, expected=True)
video_id, catalogue = self._search_regex(
- r'"https?://videos\.francetv\.fr/video/([^@]+@[^"]+)"', webpage, 'video id').split('@')
+ r'["\'>]https?://videos\.francetv\.fr/video/([^@]+@.+?)["\'<]',
+ webpage, 'video id').split('@')
return self._extract_video(video_id, catalogue)