]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/tvnoe.py
1 from .common
import InfoExtractor
9 class TVNoeIE(InfoExtractor
):
10 _VALID_URL
= r
'https?://(?:www\.)?tvnoe\.cz/video/(?P<id>[0-9]+)'
12 'url': 'http://www.tvnoe.cz/video/10362',
13 'md5': 'aee983f279aab96ec45ab6e2abb3c2ca',
17 'series': 'Noční univerzita',
18 'title': 'prof. Tomáš Halík, Th.D. - Návrat náboženství a střet civilizací',
19 'description': 'md5:f337bae384e1a531a52c55ebc50fff41',
23 def _real_extract(self
, url
):
24 video_id
= self
._match
_id
(url
)
25 webpage
= self
._download
_webpage
(url
, video_id
)
27 iframe_url
= self
._search
_regex
(
28 r
'<iframe[^>]+src="([^"]+)"', webpage
, 'iframe URL')
30 ifs_page
= self
._download
_webpage
(iframe_url
, video_id
)
31 jwplayer_data
= self
._find
_jwplayer
_data
(
32 ifs_page
, video_id
, transform_source
=js_to_json
)
33 info_dict
= self
._parse
_jwplayer
_data
(
34 jwplayer_data
, video_id
, require_title
=False, base_url
=iframe_url
)
38 'title': clean_html(get_element_by_class(
39 'field-name-field-podnazev', webpage
)),
40 'description': clean_html(get_element_by_class(
41 'field-name-body', webpage
)),
42 'series': clean_html(get_element_by_class('title', webpage
))