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

Requests Through HTTP Request #1907

Closed
sirinath opened this issue Dec 6, 2013 · 4 comments
Closed

Requests Through HTTP Request #1907

sirinath opened this issue Dec 6, 2013 · 4 comments

Comments

@sirinath
Copy link

@sirinath sirinath commented Dec 6, 2013

Similar to #1906 is it possible to provide send commands reaceive data through HTTP perhaps using something like cURL (http://curl.haxx.se/) to send commands to a running instance of YTDL do add new downloads.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 6, 2013

Do you want to be able to start a download using a HTTP request?
If that's the case, I would recommend you to write a wrapper around youtube-dl to do it. Maintaining it inside youtube-dl would be hard and probably out of the scope.

@sirinath
Copy link
Author

@sirinath sirinath commented Dec 7, 2013

I was thinking on

  1. easy integration with as part of other programs and use in remote scripts
  2. using it remotely away from the computer like what may downloaders let you do.
@sirinath
Copy link
Author

@sirinath sirinath commented Dec 7, 2013

What I am trying to get at is this. If the YTDL process is to provide a service to other processes without being platform specific you need to go through either 1 or many of these:

  1. Pipes
  2. File system
  3. Sockets
  4. REST
    Etc.

This interface can be used to in scripts, and a simple UI to interact with this process with some interactiveness. Also implement functions in downloaders like
Remove access
Completion moving
Library
Open after downloading
Introspect and request data YDL has
etc.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 7, 2013

As said in #1906, this is easier to implement with a wrapper outside youtube-dl.
If you want to make it platform agnostic, you can write a python program that calls youtube-dl and serves the information with a REST api.

@jaimeMF jaimeMF closed this Dec 7, 2013
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.