]>
Raphaël G. Git Repositories - youtubedl/blob - youtube_dl/extractor/servus.py
264e1dd8bfff14c2a290b86ec231d2ce36a8b780
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
7 class ServusIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:www\.)?servus\.com/(?:at|de)/p/[^/]+/(?P<id>AA-\w+|\d+-\d+)'
10 'url': 'https://www.servus.com/de/p/Die-Gr%C3%BCnen-aus-Sicht-des-Volkes/AA-1T6VBU5PW1W12/',
11 'md5': '046dee641cda1c4cabe13baef3be2c1c',
13 'id': 'AA-1T6VBU5PW1W12',
15 'title': 'Die Grünen aus Volkssicht',
16 'description': 'md5:052b5da1cb2cd7d562ef1f19be5a5cba',
17 'thumbnail': r
're:^https?://.*\.jpg$',
20 'url': 'https://www.servus.com/at/p/Wie-das-Leben-beginnt/1309984137314-381415152/',
21 'only_matching': True,
24 def _real_extract(self
, url
):
25 video_id
= self
._match
_id
(url
)
26 webpage
= self
._download
_webpage
(url
, video_id
)
28 title
= self
._og
_search
_title
(webpage
)
29 description
= self
._og
_search
_description
(webpage
)
30 thumbnail
= self
._og
_search
_thumbnail
(webpage
)
32 formats
= self
._extract
_m
3u8_formats
(
33 'https://stv.rbmbtnx.net/api/v1/manifests/%s.m3u8' % video_id
,
34 video_id
, 'mp4', entry_protocol
='m3u8_native', m3u8_id
='hls')
35 self
._sort
_formats
(formats
)
40 'description': description
,
41 'thumbnail': thumbnail
,