1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 06:42:52 +08:00

Adjusted _VALID_URL regular expression and added m3u8_id to

_extract_m3u8_formats().
This commit is contained in:
Alex Seiler 2017-10-19 02:38:28 +02:00
parent 4194bd80f2
commit e4fb8ff349

View File

@ -5,7 +5,7 @@ from .common import InfoExtractor
class ServusIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?servus\.com/(?:at|de)/p/[^/]+/(?P<id>[^/]+)/$'
_VALID_URL = r'https?://(?:www\.)?servus\.com/(?:at|de)/p/[^/]+/(?P<id>(?:AA-[A-Z\d]+|\d+-\d+))/'
_TEST = {
'url': 'https://www.servus.com/de/p/Die-Gr%C3%BCnen-aus-Sicht-des-Volkes/AA-1T6VBU5PW1W12/',
'md5': '046dee641cda1c4cabe13baef3be2c1c',
@ -28,7 +28,7 @@ class ServusIE(InfoExtractor):
m3u8_url = 'https://stv.rbmbtnx.net/api/v1/manifests/%s.m3u8' % video_id
formats = self._extract_m3u8_formats(
m3u8_url, video_id, 'mp4', entry_protocol='m3u8_native')
m3u8_url, video_id, 'mp4', entry_protocol='m3u8_native', m3u8_id='hls')
self._sort_formats(formats)
return {