1 from .common
import InfoExtractor
2 from ..utils
import traverse_obj
5 class FuyinTVIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www\.)?fuyin\.tv/html/(?:\d+)/(?P<id>\d+)\.html'
8 'url': 'https://www.fuyin.tv/html/2733/44129.html',
13 'description': 'md5:21a3d238dc8d49608e1308e85044b9c3',
17 def _real_extract(self
, url
):
18 video_id
= self
._match
_id
(url
)
19 json_data
= self
._download
_json
(
20 'https://www.fuyin.tv/api/api/tv.movie/url',
21 video_id
, query
={'urlid': f
'{video_id}'})
22 webpage
= self
._download
_webpage
(url
, video_id
, fatal
=False)
26 'title': traverse_obj(json_data
, ('data', 'title')),
27 'url': json_data
['data']['url'],
29 'description': self
._html
_search
_meta
('description', webpage
),