aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/servus.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-03-03 01:40:48 +0700
committerSergey M․ <dstftw@gmail.com>2020-03-03 01:41:53 +0700
commit3b5399ce0f85f46ce856d47c725a437c72dcce6e (patch)
tree1de4ce52cea9dc629a2e28cb704fd6ae388af0c0 /youtube_dl/extractor/servus.py
parent1c45ff5572e0844b2ad26c2c0d477edc81e6b5b0 (diff)
[servus] Add support for new URL schema (closes #23475, closes #23583, closes #24142)
Diffstat (limited to 'youtube_dl/extractor/servus.py')
-rw-r--r--youtube_dl/extractor/servus.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/youtube_dl/extractor/servus.py b/youtube_dl/extractor/servus.py
index e579d42cf..9401bf2cf 100644
--- a/youtube_dl/extractor/servus.py
+++ b/youtube_dl/extractor/servus.py
@@ -7,9 +7,18 @@ from .common import InfoExtractor
class ServusIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?servus\.com/(?:(?:at|de)/p/[^/]+|tv/videos)/(?P<id>[aA]{2}-\w+|\d+-\d+)'
+ _VALID_URL = r'''(?x)
+ https?://
+ (?:www\.)?
+ (?:
+ servus\.com/(?:(?:at|de)/p/[^/]+|tv/videos)|
+ servustv\.com/videos
+ )
+ /(?P<id>[aA]{2}-\w+|\d+-\d+)
+ '''
_TESTS = [{
- 'url': 'https://www.servus.com/de/p/Die-Gr%C3%BCnen-aus-Sicht-des-Volkes/AA-1T6VBU5PW1W12/',
+ # new URL schema
+ 'url': 'https://www.servustv.com/videos/aa-1t6vbu5pw1w12/',
'md5': '3e1dd16775aa8d5cbef23628cfffc1f4',
'info_dict': {
'id': 'AA-1T6VBU5PW1W12',
@@ -19,6 +28,10 @@ class ServusIE(InfoExtractor):
'thumbnail': r're:^https?://.*\.jpg',
}
}, {
+ # old URL schema
+ 'url': 'https://www.servus.com/de/p/Die-Gr%C3%BCnen-aus-Sicht-des-Volkes/AA-1T6VBU5PW1W12/',
+ 'only_matching': True,
+ }, {
'url': 'https://www.servus.com/at/p/Wie-das-Leben-beginnt/1309984137314-381415152/',
'only_matching': True,
}, {