]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/fujitv.py
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
7 class FujiTVFODPlus7IE(InfoExtractor
):
8 _VALID_URL
= r
'https?://i\.fod\.fujitv\.co\.jp/plus7/web/[0-9a-z]{4}/(?P<id>[0-9a-z]+)'
9 _BASE_URL
= 'http://i.fod.fujitv.co.jp/'
17 def _real_extract(self
, url
):
18 video_id
= self
._match
_id
(url
)
19 formats
= self
._extract
_m
3u8_formats
(
20 self
._BASE
_URL
+ 'abr/pc_html5/%s.m3u8' % video_id
, video_id
, 'mp4')
22 wh
= self
._BITRATE
_MAP
.get(f
.get('tbr'))
28 self
._sort
_formats
(formats
)
34 'thumbnail': self
._BASE
_URL
+ 'pc/image/wbtn/wbtn_%s.jpg' % video_id
,