Skip to content

Commit

Permalink
[youtube] ask for cookies only if status is LOGIN_REQUIRED
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Jun 23, 2024
1 parent 2c97640 commit 68965e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/you_get/extractors/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def prepare(self, **kwargs):
log.e('[Error] %s (%s)' % (playabilityStatus['reason'], subreason))
except:
log.e('[Error] %s' % playabilityStatus['reason'])
log.e('View the video from a browser and export the cookies, then use --cookies to load cookies.')
if status == 'LOGIN_REQUIRED':
log.e('View the video from a browser and export the cookies, then use --cookies to load cookies.')
exit(1)

stream_list = ytInitialPlayerResponse['streamingData']['formats']
Expand Down

0 comments on commit 68965e0

Please sign in to comment.