1 from .common
import InfoExtractor
4 class VimmIE(InfoExtractor
):
5 IE_NAME
= 'Vimm:stream'
6 _VALID_URL
= r
'https?://(?:www\.)?vimm\.tv/(?:c/)?(?P<id>[0-9a-z-]+)$'
8 'url': 'https://www.vimm.tv/c/calimeatwagon',
10 'id': 'calimeatwagon',
12 'title': 're:^calimeatwagon [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
13 'live_status': 'is_live',
17 'url': 'https://www.vimm.tv/octaafradio',
18 'only_matching': True,
21 def _real_extract(self
, url
):
22 channel_id
= self
._match
_id
(url
)
24 formats
, subs
= self
._extract
_m
3u8_formats
_and
_subtitles
(
25 f
'https://www.vimm.tv/hls/{channel_id}.m3u8', channel_id
, 'mp4', m3u8_id
='hls', live
=True)
36 class VimmRecordingIE(InfoExtractor
):
37 IE_NAME
= 'Vimm:recording'
38 _VALID_URL
= r
'https?://(?:www\.)?vimm\.tv/c/(?P<channel_id>[0-9a-z-]+)\?v=(?P<video_id>[0-9A-Za-z]+)'
40 'url': 'https://www.vimm.tv/c/kaldewei?v=2JZsrPTFxsSz',
41 'md5': '15122ee95baa32a548e4a3e120b598f1',
45 'title': 'VIMM - [DE/GER] Kaldewei Live - In Farbe und Bunt',
46 'uploader_id': 'kaldewei',
50 def _real_extract(self
, url
):
51 channel_id
, video_id
= self
._match
_valid
_url
(url
).groups()
53 webpage
= self
._download
_webpage
(url
, video_id
)
54 title
= self
._og
_search
_title
(webpage
)
56 formats
, subs
= self
._extract
_m
3u8_formats
_and
_subtitles
(
57 f
'https://d211qfrkztakg3.cloudfront.net/{channel_id}/{video_id}/index.m3u8', video_id
, 'mp4', m3u8_id
='hls', live
=False)
63 'uploader_id': channel_id
,