]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/genericembeds.py
1 from .common
import InfoExtractor
4 class HTML5MediaEmbedIE(InfoExtractor
):
9 'url': 'https://html.com/media/',
11 'title': 'HTML5 Media',
12 'description': 'md5:933b2d02ceffe7a7a0f3c8326d91cc2a',
18 def _extract_from_webpage(self
, url
, webpage
):
19 video_id
, title
= self
._generic
_id
(url
), self
._generic
_title
(url
)
20 entries
= self
._parse
_html
5_media
_entries
(url
, webpage
, video_id
, m3u8_id
='hls') or []
21 for num
, entry
in enumerate(entries
, start
=1):
23 'id': f
'{video_id}-{num}',
24 'title': f
'{title} ({num})',
26 self
._sort
_formats
(entry
['formats'])