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.
ytsearch is broken as of April 2015 #5483
Comments
|
Youtube API V2 is not supported anymore, which is what ytsearch probably uses. This may also affect other YouTube extractors - though so far it doesn't seem to affect the YouTube extractor that actually downloads videos. |
|
@Tailszefox Yeah, fortunately the videos can still be watched - it's just |
|
youtube API V3 is the way to go, but one need to register its app to get the API_KEY url - https://www.googleapis.com/youtube/v3/search?key=API_KEY&part=snippet&q=something |
|
i dont know for how long but except this video UKY3scPIMd8 . everything seems to be working fine so why not just slice the first element of search array , quick workaround |
|
This also seems to be broken on Youtube channels, but it just prepends it to the list:-
|
|
@sudovijay Wait.. you mean YouTube-DL actually uses an API? And fetches the videos in a legitimate manner? I thought it was just a "contraband" YouTube ripper which only exists because Google hasn't bothered to stamp it out. |
|
It should be fixed in the next version. Thanks for the report. @JamesTheAwesomeDude we used it just for the search results and for users, but now we are just parsing the pages that their own interface uses. (Also AFAIK the api didn't allow you to actually download the video) |
|
This has been fixed in youtube-dl 2015.04.26. See our FAQ if you have problems updating. |
I'm not sure what's wrong, but
ytsearch:always returns this video: https://www.youtube.com/watch?v=UKY3scPIMd8Problem confirmed with YouTube-DL version 2015.04.17 (tested on multiple search strings on April 20, 2015).
It's probably nothing much, just changes to YouTube's search page.