mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
[youtube] show warning for premieres
This commit is contained in:
parent
4e98f7bcae
commit
672cc4b1f9
@ -225,7 +225,11 @@ class YouTube(VideoExtractor):
|
|||||||
|
|
||||||
# YouTube Live
|
# YouTube Live
|
||||||
if ytplayer_config and (ytplayer_config['args'].get('livestream') == '1' or ytplayer_config['args'].get('live_playback') == '1'):
|
if ytplayer_config and (ytplayer_config['args'].get('livestream') == '1' or ytplayer_config['args'].get('live_playback') == '1'):
|
||||||
|
if 'hlsvp' in ytplayer_config['args']:
|
||||||
hlsvp = ytplayer_config['args']['hlsvp']
|
hlsvp = ytplayer_config['args']['hlsvp']
|
||||||
|
else:
|
||||||
|
player_response= json.loads(ytplayer_config['args']['player_response'])
|
||||||
|
log.e('[Failed] %s' % player_response['playabilityStatus']['reason'], exit_code=1)
|
||||||
|
|
||||||
if 'info_only' in kwargs and kwargs['info_only']:
|
if 'info_only' in kwargs and kwargs['info_only']:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user