]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/streamff.py
1 from .common
import InfoExtractor
2 from ..utils
import int_or_none
, parse_iso8601
5 class StreamFFIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www\.)?streamff\.com/v/(?P<id>[a-zA-Z0-9]+)'
9 'url': 'https://streamff.com/v/55cc94',
10 'md5': '8745a67bb5e5c570738efe7983826370',
15 'timestamp': 1634764643,
16 'upload_date': '20211020',
21 def _real_extract(self
, url
):
22 video_id
= self
._match
_id
(url
)
23 json_data
= self
._download
_json
(f
'https://streamff.com/api/videos/{video_id}', video_id
)
26 'title': json_data
.get('name') or video_id
,
27 'url': 'https://streamff.com/%s' % json_data
['videoLink'],
28 'view_count': int_or_none(json_data
.get('views')),
29 'timestamp': parse_iso8601(json_data
.get('date')),