shiningw / ncdownloader

An easy-to-use web interface for Aria2 and Youtube-dl (downloading bittorrents, videos from twitter, youtube and the likes)运行在nextcloud下的多功能下载工具(Aria2 and youtube-dl)
GNU Affero General Public License v3.0
93 stars 29 forks source link

Provide REST-API for 3rd party clients #99

Open stefan-niedermann opened 1 year ago

stefan-niedermann commented 1 year ago

Dear @shiningw ,

let me introduce myself: I am Stefan, maintainer of the Notes Android app and the Deck Android app and I'd like to write an Android client for the NCDownloader app for a more native integration (for example sharing links directly into NCDownloader).

Is there any chance we can get a stable public REST API to work with?

Looking forward to some kind of collaboration :rocket:

shiningw commented 1 year ago

Hi @stefan-niedermann ,It sounds great and I'm very interested. I have been thinking about implementing an API for browser extensions and mobile clients for some time but didn't do it due to lack of time. Now with someone like you joining in, I will manage to get some time to work on it.
Can you tell me a little more about your plan? would your app be able to send download tasks to Ncdownloader directly by clicking on a magnet link or even better, HTTP link?

stefan-niedermann commented 1 year ago

Asking everytime one clicks a link seems a bit invasive in my opinion. I thought about a share target, so one can share a link into the NCDownloader Android app which will trigger the server app.

I'd also like to display the same information that is available on the web interface in the app for feature parity.

shiningw commented 1 year ago

Hi, So that means we can send video links in youtube or other apps directly to ncdownloader?
We should have a rudimentary API ready soon.

31337-4554551n commented 1 year ago

I'm just curious what the status on this is? Stefan has made some amazing tools to use nextcloud apps on android, and has kindly agreed to do the same for ncdownloader. ncdownloader in particular becomes MUCH more useful if it can be accessed easily and directly from mobile. Kick off a download, it's ready when you get home.