Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libre
youtube-dl
Commits
06cd4cdb
Unverified
Commit
06cd4cdb
authored
Sep 13, 2020
by
Sergey M․
Browse files
[srgssr] Extend _VALID_URL (closes #26555, closes #26556, closes #26578)
parent
da2069fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
youtube_dl/extractor/srgssr.py
View file @
06cd4cdb
...
...
@@ -114,7 +114,7 @@ class SRGSSRPlayIE(InfoExtractor):
[^/]+/(?P<type>video|audio)/[^?]+|
popup(?P<type_2>video|audio)player
)
\?
id=
(?P<id>[0-9a-f\-]{36}|\d+)
\?
.*?\b(?:id=|urn=urn:[^:]+:video:)
(?P<id>[0-9a-f\-]{36}|\d+)
'''
_TESTS
=
[{
...
...
@@ -175,6 +175,12 @@ class SRGSSRPlayIE(InfoExtractor):
},
{
'url'
:
'https://www.srf.ch/play/tv/popupvideoplayer?id=c4dba0ca-e75b-43b2-a34f-f708a4932e01'
,
'only_matching'
:
True
,
},
{
'url'
:
'https://www.srf.ch/play/tv/10vor10/video/snowden-beantragt-asyl-in-russland?urn=urn:srf:video:28e1a57d-5b76-4399-8ab3-9097f071e6c5'
,
'only_matching'
:
True
,
},
{
'url'
:
'https://www.rts.ch/play/tv/19h30/video/le-19h30?urn=urn:rts:video:6348260'
,
'only_matching'
:
True
,
}]
def
_real_extract
(
self
,
url
):
...
...
Write
Preview
Supports
Markdown
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