rogerfar / rdt-client

Real-Debrid Client Proxy
MIT License
816 stars 108 forks source link

Save Links Alldebrid #336

Open minouche-hdz opened 10 months ago

minouche-hdz commented 10 months ago

What version are you using? V 2.0.40 Wat OS are you running? Ubuntu 22.04.3 LTS Are you using Docker or as a service? Docker Which debrid provider are you using? Alldebrid Please attach a log file here with the log setting set to debug

For the moment I'm using a script that will add my torrent to Alldebrid in magnet then retrieve the link and save it so I can access it via Rclone and a second one that will take care of creating a symbolic link for me. I'd like to know if it's possible to add an option in RDT's settings to save links on Alldebrid.

rogerfar commented 7 months ago

I'm not sure what you mean exactly, but are you using the symlink downloader?

Cucumberrbob commented 7 months ago

Alldebrid has two places the files from torrents you've added can live: links and magnets. Magnets does what is says on the tin: it stores the entire downloaded torrent in its original file structure. It is accessible at /mnt-root/magnets. For instance a series might have a file /mnt-root/magnets/Series.Name.S01/Episode 1.mkv. Whenever a magnet or torrent is added to AD, it will be added here.

Now, once a magnet is accessible in the magnets section, you can generate links (on a hosting provider) for it. You take the alldebrid.com/{id} link from /api/magnets/status, and send it to /api/user/links/save. This will add the item to the mount so that it is accessible at /mnt-root/links/filename.

I think AD would rather users keep stuff in the links section, as there is a hard limit of 1000 torrents in the magnets section. When I managed my media manually, I would keep shows in the magnets section, and movies in the links section.

As I understand it, rdt-client is doing a fair bit of extra work for AD symlink-downloader users at the moment. Because the magnets section is the only place the files will show up at the moment, you must set the rclone mount path as /mnt-root/magnets, so the requests to unrestrict the links aren't useful. And as we can be pretty convinced that all the files in a directory (magnet) should appear at the same time on the rclone mount, there might be some batching possible there.

I've looked into trying to fork your AD client for dotnet, but my dotnet skills really aren't there at the moment, and I've been super busy with exams.

To add, I'm more than willing to purchase a month of AD for you if you need an account for testing.