projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db1c3a9
)
[francetv:site] Extend video id regex (closes #20029, closes #20071)
author
Sergey M․
<dstftw@gmail.com>
Thu, 28 Feb 2019 16:26:52 +0000
(23:26 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 28 Feb 2019 16:26:52 +0000
(23:26 +0700)
youtube_dl/extractor/francetv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/francetv.py
b/youtube_dl/extractor/francetv.py
index 2ffe83a78c49b8e6b7436642febb72f66567068d..3c4ef08a833361d9a9dd82f186637fcec26a7348 100644
(file)
--- a/
youtube_dl/extractor/francetv.py
+++ b/
youtube_dl/extractor/francetv.py
@@
-271,7
+271,7
@@
class FranceTVSiteIE(FranceTVBaseInfoExtractor):
catalogue = None
video_id = self._search_regex(
- r'
data-main-video=
(["\'])(?P<id>(?:(?!\1).)+)\1',
+ r'
(?:data-main-video\s*=|videoId\s*:)\s*
(["\'])(?P<id>(?:(?!\1).)+)\1',
webpage, 'video id', default=None, group='id')
if not video_id: