Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube Search does not work when cookies are provided #26220
Comments
|
It would be nice to at least have a reference to what this is a duplicate of so I can follow it. |
Checklist
Verbose log
Description
The Youtube Search currently does not work when there are session cookies for YouTube provided. Without a provided cookies file, the search works correctly. I implemented a proof-of-concept workaround that fixes the issue, but that just removes the cookies from the downloader during search and re-adds them afterwards: peet1993/youtube-dl@56817ed
The crash happens because with a valid login session, YouTube answers the search query with
{"reload":"now"}instead of the search result as expected by youtube-dl. I'm not sure why that happens. However, it is reproducible with curl:The issue was previously reported in #26204, but OP closed it after I added my workaround as reference.