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

youtube-dl is returning format links that are not working properly for YouTube video #6004

Closed
bartekrutkowski opened this issue Jun 17, 2015 · 5 comments

Comments

@bartekrutkowski
Copy link

@bartekrutkowski bartekrutkowski commented Jun 17, 2015

Hi,
I using youtube-dl as a library in my own Python code (instead of standalone application) and I've issue with particular YouTube link:

https://www.youtube.com/watch?v=WOFk0PpG1EA

For some reason I am getting video formats links (using the extractor.extract_info('https://www.youtube.com/watch?v=WOFk0PpG1EA') method) but they're not usable: when they're being pasted into browser, the page is not rendering any player and is just blank white.

What could be the issue and how to detect it from the youtube-dl level?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 17, 2015

Do you test final download URLs from the same machine/IP? Can you download with youtube-dl itself?

@bartekrutkowski
Copy link
Author

@bartekrutkowski bartekrutkowski commented Jun 17, 2015

No, I am not testing the URL's from the same machine, since its my web application on a server that generates the links for me, and I am using them from my desktop machine, so obviously, the IP's differ. However, its a first case when I have such issues, is there a way to detect such videos using youtube-dl so that my web application would behave differently when it spots them?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 17, 2015

Can't tell you for sure, but from my experience those are videos with gcr=<two-letter country code> in final URL. You may also want to read this.

@dstftw dstftw closed this Jun 17, 2015
@bartekrutkowski
Copy link
Author

@bartekrutkowski bartekrutkowski commented Jun 17, 2015

Does that 'gcr' thing applies to all extractors or is it a YouTube specific thing?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 17, 2015

youtube-dl does not modify final URLs, so that's solely YouTube thing.

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
2 participants
You can’t perform that action at this time.