1 from .common
import InfoExtractor
4 class VolejTVIE(InfoExtractor
):
5 _VALID_URL
= r
'https?://volej\.tv/video/(?P<id>\d+)'
7 'url': 'https://volej.tv/video/725742/',
11 'description': 'Zápas VK Královo Pole vs VK Prostějov 10.12.2022 v 19:00 na Volej.TV',
12 'thumbnail': 'https://volej.tv/images/og/16/17186/og.png',
13 'title': 'VK Královo Pole vs VK Prostějov',
16 'url': 'https://volej.tv/video/725605/',
20 'thumbnail': 'https://volej.tv/images/og/15/17185/og.png',
21 'title': 'VK Lvi Praha vs VK Euro Sitex Příbram',
22 'description': 'Zápas VK Lvi Praha vs VK Euro Sitex Příbram 11.12.2022 v 19:00 na Volej.TV',
26 def _real_extract(self
, url
):
27 video_id
= self
._match
_id
(url
)
28 webpage
= self
._download
_webpage
(url
, video_id
)
29 json_data
= self
._search
_json
(
30 r
'<\s*!\[CDATA[^=]+=', webpage
, 'CDATA', video_id
)
31 formats
, subtitle
= self
._extract
_m
3u8_formats
_and
_subtitles
(
32 json_data
['urls']['hls'], video_id
)
35 'title': self
._html
_search
_meta
(['og:title', 'twitter:title'], webpage
),
36 'thumbnail': self
._html
_search
_meta
(['og:image', 'twitter:image'], webpage
),
37 'description': self
._html
_search
_meta
(['description', 'og:description', 'twitter:description'], webpage
),
39 'subtitles': subtitle
,