mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
[youtube] ask for cookies only if status is LOGIN_REQUIRED
This commit is contained in:
parent
2c976407e5
commit
68965e0a96
@ -211,6 +211,7 @@ class YouTube(VideoExtractor):
|
|||||||
log.e('[Error] %s (%s)' % (playabilityStatus['reason'], subreason))
|
log.e('[Error] %s (%s)' % (playabilityStatus['reason'], subreason))
|
||||||
except:
|
except:
|
||||||
log.e('[Error] %s' % playabilityStatus['reason'])
|
log.e('[Error] %s' % playabilityStatus['reason'])
|
||||||
|
if status == 'LOGIN_REQUIRED':
|
||||||
log.e('View the video from a browser and export the cookies, then use --cookies to load cookies.')
|
log.e('View the video from a browser and export the cookies, then use --cookies to load cookies.')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user