Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
9d74ea6d
Unverified
Commit
9d74ea6d
authored
Mar 08, 2019
by
Sergey M․
Browse files
[francetv:site] Relax video id regex and update test (closes #20268)
parent
7b6e7608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
youtube_dl/extractor/francetv.py
youtube_dl/extractor/francetv.py
+2
-2
No files found.
youtube_dl/extractor/francetv.py
View file @
9d74ea6d
...
@@ -215,7 +215,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
...
@@ -215,7 +215,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
_TESTS
=
[{
_TESTS
=
[{
'url'
:
'https://www.france.tv/france-2/13h15-le-dimanche/140921-les-mysteres-de-jesus.html'
,
'url'
:
'https://www.france.tv/france-2/13h15-le-dimanche/140921-les-mysteres-de-jesus.html'
,
'info_dict'
:
{
'info_dict'
:
{
'id'
:
'
162311093
'
,
'id'
:
'
ec217ecc-0733-48cf-ac06-af1347b849d1
'
,
'ext'
:
'mp4'
,
'ext'
:
'mp4'
,
'title'
:
'13h15, le dimanche... - Les mystères de Jésus'
,
'title'
:
'13h15, le dimanche... - Les mystères de Jésus'
,
'description'
:
'md5:75efe8d4c0a8205e5904498ffe1e1a42'
,
'description'
:
'md5:75efe8d4c0a8205e5904498ffe1e1a42'
,
...
@@ -271,7 +271,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
...
@@ -271,7 +271,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
catalogue
=
None
catalogue
=
None
video_id
=
self
.
_search_regex
(
video_id
=
self
.
_search_regex
(
r
'(?:data-main-video\s*=|videoId
\s*:
)\s*(["\'])(?P<id>(?:(?!\1).)+)\1'
,
r
'(?:data-main-video\s*=|videoId
["\']?\s*[:=]
)\s*(["\'])(?P<id>(?:(?!\1).)+)\1'
,
webpage
,
'video id'
,
default
=
None
,
group
=
'id'
)
webpage
,
'video id'
,
default
=
None
,
group
=
'id'
)
if
not
video_id
:
if
not
video_id
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment