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

[Request] New option, that returns the video urls in an array format #2295

Closed
appkr opened this issue Feb 3, 2014 · 2 comments
Closed

[Request] New option, that returns the video urls in an array format #2295

appkr opened this issue Feb 3, 2014 · 2 comments

Comments

@appkr
Copy link

@appkr appkr commented Feb 3, 2014

Hi?

Thanks for the code. I love it much.

I'm writing this post to request you a new option. I want to make a REST API service that syndicates various video sites, so that an mobile app or browser app can request the list of video urls and users can choose one. Or, in case of mobile, depending on the network context, the intelligence in the mobile app make a selection of video quality automatically. (Network intelligence is one of main jobs that my company is doing. The REST API is nice-to-have for the Demo of our solution.)

I have tried in Java and php, but was not able to follow the speed of youtube signature/policy change. Too much effort. In that sense, youtube-dl is the best in terms of video service coverage and its robustness.

Not only I am not an expert at Python code, but I don't want to modify any of youtube-dl itself, because it keeps growing/being maintained in the public domain. What I just want to do, for this plan to be working, is a wrapper or inherited module that takes full advantage of youtube-dl.

As I stated at the title of this post, can you add an option that stdout a list of urls in array format, like json with content-type header (e.g. Content-type: application/json; charset=utf-8\n). More preferrably, web front-end interface or so called api endpoint also, that receives REST API call (something like http://path/api/index.py?url=http..youtube..xhkUEks&format=json)?

I know it's too much :). Please let me know if there already is such option, but I was not realized. Answer like 'do it yourself after studying python', well it's also ok. Any feedback, I'm looking forward to.

Juwon.

@phihag
Copy link
Contributor

@phihag phihag commented Feb 3, 2014

There already is an API server project (by one of our core developers): https://github.com/jaimeMF/youtube-dl-api-server . It looks like that does almost exactly what you want.

@phihag phihag closed this Feb 3, 2014
@appkr
Copy link
Author

@appkr appkr commented Feb 3, 2014

many thanks.

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.