mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-15 08:58:28 +00:00
inline
This commit is contained in:
parent
f33a8f7340
commit
250b7308d8
@ -114,14 +114,12 @@ def _real_extract(self, url):
|
|||||||
raise ExtractorError('Unable to extract video URL')
|
raise ExtractorError('Unable to extract video URL')
|
||||||
vid_url = urljoin('https://video.fc2.com/', vid_url)
|
vid_url = urljoin('https://video.fc2.com/', vid_url)
|
||||||
|
|
||||||
video_type = vidplaylist.get('type')
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'url': vid_url,
|
'url': vid_url,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'protocol': 'm3u8_native' if video_type == 2 else 'https',
|
'protocol': 'm3u8_native' if vidplaylist.get('type') == 2 else 'https',
|
||||||
'description': description,
|
'description': description,
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user