mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-15 22:32:52 +08:00
[servus] Simplify
This commit is contained in:
parent
e4fb8ff349
commit
76c3b94860
@ -5,8 +5,8 @@ from .common import InfoExtractor
|
|||||||
|
|
||||||
|
|
||||||
class ServusIE(InfoExtractor):
|
class ServusIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?servus\.com/(?:at|de)/p/[^/]+/(?P<id>(?:AA-[A-Z\d]+|\d+-\d+))/'
|
_VALID_URL = r'https?://(?:www\.)?servus\.com/(?:at|de)/p/[^/]+/(?P<id>AA-\w+|\d+-\d+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://www.servus.com/de/p/Die-Gr%C3%BCnen-aus-Sicht-des-Volkes/AA-1T6VBU5PW1W12/',
|
'url': 'https://www.servus.com/de/p/Die-Gr%C3%BCnen-aus-Sicht-des-Volkes/AA-1T6VBU5PW1W12/',
|
||||||
'md5': '046dee641cda1c4cabe13baef3be2c1c',
|
'md5': '046dee641cda1c4cabe13baef3be2c1c',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -16,7 +16,10 @@ class ServusIE(InfoExtractor):
|
|||||||
'description': 'md5:052b5da1cb2cd7d562ef1f19be5a5cba',
|
'description': 'md5:052b5da1cb2cd7d562ef1f19be5a5cba',
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'thumbnail': r're:^https?://.*\.jpg$',
|
||||||
}
|
}
|
||||||
}
|
}, {
|
||||||
|
'url': 'https://www.servus.com/at/p/Wie-das-Leben-beginnt/1309984137314-381415152/',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user