aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/extractor/srgssr.py
diff options
context:
space:
mode:
authorUnknown <blackjack4494@web.de>2020-09-14 12:54:54 +0200
committerUnknown <blackjack4494@web.de>2020-09-14 12:54:54 +0200
commit1985f657e5df8529444d7f3b6726b07bae202506 (patch)
tree1c26923c100d36910a66dd9c8ee3897d7e8e8fc7 /youtube_dlc/extractor/srgssr.py
parent0e0b56a2909f3c7191b6d276c1e751c94d6faafe (diff)
parente69dd7809034c0bec432438e2aa96b70fdea8294 (diff)
Merge branch 'ytdl-org-master'
Diffstat (limited to 'youtube_dlc/extractor/srgssr.py')
-rw-r--r--youtube_dlc/extractor/srgssr.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/srgssr.py b/youtube_dlc/extractor/srgssr.py
index 170dce87f..f63a1359a 100644
--- a/youtube_dlc/extractor/srgssr.py
+++ b/youtube_dlc/extractor/srgssr.py
@@ -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):