itsToggle / plex_debrid

Plex torrent streaming through Debrid Services
1.52k stars 132 forks source link

Request: Add support for other debrid providers #6

Closed morpheasgr closed 2 years ago

morpheasgr commented 2 years ago

Hi, would love to see your projects evolve and support other Debrid providers which offer API access.

Can help test, and maybe implement and might be able to provide temporary API access from my accounts for the following services: Debrid-Link.fr, AllDebrid.com.

I bet many people would also want to see this for Premiumize.me

Links to API: DL: https://debrid-link.fr/api_doc/v2/introduction

AD: https://docs.alldebrid.com/#general-informations

Both these services offer Webdav by the way, in contrast to RD and Debrid-Link.fr also seeds content which makes it my current favorite and compatible with private trackers.

itsToggle commented 2 years ago

Hey, Ive now prepared this script to allow the Integration of different debrid providers. Before actually implementing any of them I will clean up the code a bit.

I will most likely add support for premiumize first, since Ive worked with their API before and there is an existing rclone implementation for it.

I cant code and maintain an rclone implementation for all debrid providers.

Have you tried integrating the Webdav servers of these other providers into Plex? I was under the Impression that any WebDav server (at least on windows) has a filesize limit of 50mb, so you cant watch movies. If that isnt the case and the webdav servers work nicely with Plex, I would only have to integrate them into this download automation which should be easy enough.

morpheasgr commented 2 years ago

The webdav is only meant for read-only access to files/folders. The webdav entry points are on their servers and not on the LAN. I just added a 100GB file to my cloud to test. My file manager on Android where I have mounted their Webdav was able to read/stream the video file perfectly (I selected 'Direct Link' when opening, not 'save in temp'. MX Player Pro was able to play it back without much stuttering. It's basically a mock webdav. Deletions have to be done via the API.

I like your project's approach that you are trying to eliminate the downloading necessity that is associated with Plex. My vision is to take this a step further and eliminate the PC from the equation somehow, run/mock a Plex Server and port everything else needed to Android devices.

I am a huge anime fan by the way, but this can be extended with additional scrapers.

itsToggle commented 2 years ago

Premiumize and Alldebrid added :) I will try to get Debrid-Link working aswell. Does Debrid-Link support cached torrent releases?

morpheasgr commented 2 years ago

Does Debrid-Link support cached torrent releases?

Hell yeah :)

itsToggle commented 2 years ago

Ah nice, okay! Cool service. I only have a 'free' account, and when I added a relatively popular release it had to download first. I should be able to get this implemented today or the day after :)

itsToggle commented 2 years ago

Okay Im at my daily limit on my free debrid link account, could you try out if my implementation works?

I sadly couldnt get the oauth authentification via device code to work. Eventhough it returned an api_key, Im getting an 'access_denied' error when using it. So for now, you have to enter your private api key.

morpheasgr commented 2 years ago

Wait wait. Don't close this yet, was looking for a way to contact you privately without having to ask for personal info. I might be able to generate a trial invite voucher, dunno whether I can make a secondary temporary api key, will open a ticket to ask whether they offer test accounts for devs. :) Better safe than sorry/banned or breaking anything.

itsToggle commented 2 years ago

finally got around to fixing some of the debridlink issues in the latest release. The guys over on debridlink.fr gave me a whole freakin year of premium! I might need to switch to debridlink alltogether haha

morpheasgr commented 2 years ago

They are super awesome :) most caring and friendly debrid service in the world.