mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 22:15:03 +03:00
[youtube] download hlsvp via ffmpeg
This commit is contained in:
parent
474f4d724a
commit
61d9bf124e
@ -148,6 +148,17 @@ class YouTube(VideoExtractor):
|
|||||||
elif video_info['status'] == ['ok']:
|
elif video_info['status'] == ['ok']:
|
||||||
if 'use_cipher_signature' not in video_info or video_info['use_cipher_signature'] == ['False']:
|
if 'use_cipher_signature' not in video_info or video_info['use_cipher_signature'] == ['False']:
|
||||||
self.title = parse.unquote_plus(video_info['title'][0])
|
self.title = parse.unquote_plus(video_info['title'][0])
|
||||||
|
|
||||||
|
# YouTube Live
|
||||||
|
if 'url_encoded_fmt_stream_map' not in video_info:
|
||||||
|
hlsvp = video_info['hlsvp'][0]
|
||||||
|
|
||||||
|
if 'info_only' in kwargs and kwargs['info_only']:
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
download_url_ffmpeg(hlsvp, self.title, 'mp4')
|
||||||
|
exit(0)
|
||||||
|
|
||||||
stream_list = video_info['url_encoded_fmt_stream_map'][0].split(',')
|
stream_list = video_info['url_encoded_fmt_stream_map'][0].split(',')
|
||||||
|
|
||||||
# Parse video page (for DASH)
|
# Parse video page (for DASH)
|
||||||
|
Loading…
Reference in New Issue
Block a user