-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overwrites my cookie file... and also tells me that I need to sign in? #33006
Comments
#22069: yt-dl treats the cookie file like a browser would, refreshing the cookie store. You can keep a copy of the original exported cookie file (but cookies won't be refreshed, so more likely to be expired on next use). Setting the file as read-only provokes an error. For the bot-ty part of the issue see #32960. |
Also, please use the latest nightly release per #30839. |
Are you saying it is refreshing the cookie store because youtube is invalidating the cookies on request? Then I suppose they have updated their policy, because this was working about a month and a half ago and is no longer. |
If the site sends new cookies or the existing ones expire, those changes are reflected in the cookie file. We don't do anything to make this happen or not, other than It's entirely possible that YT has changed cookie policies since there seems to be a lot of other breakage. The #32960 part of the issue may be connected: the bot-detection bot could be seeing your cookies and invalidating them as part of the message to force you into the app or website. |
Admittedly I was also taken aback by the behaviour, that it updates/overwrites my cookie file. It seems like a very unnatural thing to do, that it should have a specific option to allow overwriting, but at this point it's probably impossible to change. Basically I crafted a cookie file with expiry dates far into the future only to find them cut to a tiny fraction of what they were... |
An exact case where stashing a copy of the custom file before using it would have helped ... The #22069 behaviour may not have seemed surprising to the original authors, but it could perhaps be noted in the documentation. |
Checklist
Verbose log
Description
I know this may look like broken site support, but it also overwrites my cookie file, which seems like a bug. I start with a cookie file I take from my browser that has quite a lot in it, but after I run it, the cookie file is completely different and very small.
Here is my code
The text was updated successfully, but these errors were encountered: