jonbarrow / stream-box

Free, open source, movie and TV show streaming application
63 stars 20 forks source link

[Feature Suggestion] Real-Debrid support #6

Open DaedalusBLN opened 5 years ago

DaedalusBLN commented 5 years ago

Real-Debrid (commonly abbreviated to RD) is a service used in almost all of the most popular streaming apps (on Android) and also in download managers such as jDownloader. It acts as a middle-man when you are downloading/streaming files from most file hosting services, it can also act as a middle-man for torrenting and offers pre-cached torrents. It either downloads files straight from the filehost for you, as if you had premium subscription on that filehost, but it also has caching servers keeping copies of the files for super-fast downloads from its own servers. It is a paid service, but it is affordable and very popular. I'd be willing to contact Real-Debrid or temporarily give you my own account for development (just don't get me banned, lol) if you're willing to integrate Real-Debrid into stream-box.

First things first though, stream selector and list sorting options (eg by quality/resolution/filesize) should come first, I suppose.

More info: https://real-debrid.com/faq https://api.real-debrid.com https://www.youtube.com/watch?v=-zNXyzeFuiw

jonbarrow commented 5 years ago

Sounds interesting, I will definitely add this to the road map. Given the paid nature of the service though, if this were the be implemented I would require users to input their own login credentials for their own paid accounts.

I'd be willing to contact Real-Debrid ... for development

Are you saying Real-Debrid will give out some kind of test account for development purposes?

jonbarrow commented 5 years ago

I have purchased a Real-Debrid membership for development. So far everything is going well!

image

I have opted for using device linking rather than logging in with a username/password or API key. Meaning, users will just need to go to the Real Debrid (on another device) and enter a code given to them by Stream Box to link their account to the software. This way, the user does not have to enter anything into Stream Box and the software never sees the users account credentials.

However I still have yet to decide how to display the link code to the user.

DaedalusBLN commented 5 years ago

This is great news. Whatever you do, make sure you don't have the same bug like these guys: https://www.reddit.com/r/TVZionApp/comments/b7th3n/i_think_i_found_who_trashed_rd_torrent_servers_no/

jonbarrow commented 5 years ago

That seems to be about torrents. Stream Box does not actually use torrents. At least not right now. This is because Stream Box is purely a streaming client, it does not allow you to download or save any content, and streaming torrent files, while possible, is cumbersome and not really something I am interested in implementing at the moment. However, feel free to send over a PR if you want to add torrent streaming!