Skip to content
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

ytsearch is broken as of April 2015 #5483

Closed
JamesTheAwesomeDude opened this issue Apr 20, 2015 · 8 comments
Closed

ytsearch is broken as of April 2015 #5483

JamesTheAwesomeDude opened this issue Apr 20, 2015 · 8 comments
Labels

Comments

@JamesTheAwesomeDude
Copy link

@JamesTheAwesomeDude JamesTheAwesomeDude commented Apr 20, 2015

I'm not sure what's wrong, but ytsearch: always returns this video: https://www.youtube.com/watch?v=UKY3scPIMd8

Problem 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.

@jaimeMF jaimeMF added the broken-IE label Apr 20, 2015
@Tailszefox
Copy link
Contributor

@Tailszefox Tailszefox commented Apr 20, 2015

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.

@JamesTheAwesomeDude
Copy link
Author

@JamesTheAwesomeDude JamesTheAwesomeDude commented Apr 20, 2015

@Tailszefox Yeah, fortunately the videos can still be watched - it's just ytsearch that's broken.

@sudovijay
Copy link
Contributor

@sudovijay sudovijay commented Apr 21, 2015

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

@sudovijay
Copy link
Contributor

@sudovijay sudovijay commented Apr 21, 2015

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 😄

@tYGjQCsvVI
Copy link

@tYGjQCsvVI tYGjQCsvVI commented Apr 21, 2015

This also seems to be broken on Youtube channels, but it just prepends it to the list:-

youtube-dl --get-title 'https://youtube.com/user/1veritasium'
https://youtube.com/devicesupport
Explained: Beaker Ball Balance Problem
Beaker Ball Balance Problem

@JamesTheAwesomeDude
Copy link
Author

@JamesTheAwesomeDude JamesTheAwesomeDude commented Apr 21, 2015

@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.

dstftw added a commit that referenced this issue Apr 21, 2015
@jaimeMF jaimeMF closed this in b4c0806 Apr 21, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 21, 2015

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)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 26, 2015

This has been fixed in youtube-dl 2015.04.26. See our FAQ if you have problems updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.