]>
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?://fod\.fujitv\.co\.jp/title/[0-9a-z]{4}/(?P<id>[0-9a-z]+)'
9 _BASE_URL
= 'http://i.fod.fujitv.co.jp/'
19 'url': 'https://fod.fujitv.co.jp/title/5d40/5d40810075',
22 'title': '5d40810075',
25 'thumbnail': 'http://i.fod.fujitv.co.jp/pc/image/wbtn/wbtn_5d40810075.jpg'
27 'skip': 'Expires after a week'
30 def _real_extract(self
, url
):
31 video_id
= self
._match
_id
(url
)
32 formats
= self
._extract
_m
3u8_formats
(
33 self
._BASE
_URL
+ 'abr/tv_android/%s.m3u8' % video_id
, video_id
, 'mp4')
35 wh
= self
._BITRATE
_MAP
.get(f
.get('tbr'))
41 self
._sort
_formats
(formats
)
47 'thumbnail': self
._BASE
_URL
+ 'pc/image/wbtn/wbtn_%s.jpg' % video_id
,