Skip to content

Stephan296/rdt-client

 
 

Repository files navigation

Real-Debrid Torrent Client

This is a web interface to manage your torrents on Real-Debrid. It supports the following features:

  • Add new torrents through magnet or files
  • Download all files from Real Debrid to your local machine automatically
  • Unpack all files when finished downloading
  • Implements a fake qBittorrent API so you can hook up other applications like Sonarr or Couchpotato.
  • Built with Angular 9 and .NET 5

You will need a Premium service at Real-Debrid!

Docker Run

docker run --cap-add=NET_ADMIN -d \
              -v /your/storage/path/:/data/downloads \
              --log-driver json-file \
              --log-opt max-size=10m \
              -p 6500:6500 \
              rogerfar/rdtclient

Replace /your/storage/path/ with your local path to download files to. For Windows i.e. C:/Downloads.

Windows Service Installation

  1. Make sure you have the .NET 5.0.1+ runtime installed from here.
  2. Unpack the latest release from the releases folder and run startup.bat. This will start the application on port 6500.
  3. To install as service on Windows, exit the console and run serviceinstall.bat as administrator.
  4. To change the default port edit the appsettings.json file.

Setup

  1. Browse to http://127.0.0.1:6500 (or the path of your server).
  2. The very first credentials you enter in will be remembered for future logins.
  3. Click on Settings on the top and enter your Real-Debrid API key (found here: https://real-debrid.com/apitoken.
  4. Change your download path if needed. When using Docker, this path will be the path on your local machine.
  5. Save your settings.

Removing

  1. Run serviceremove.bat to remove the service and firewall rules.

Troubleshooting

  • If you forgot your logins simply delete the database.db and restart the service.

Connecting Sonarr/Radarr

RdtClient emulates the qBittorrent web protocol and allow applications to use those APIs. This way you can use Sonarr and Radarr to download directly from RealDebrid.

  1. Login to Sonarr or Radarr and click Settings.
  2. Go to the Download Client tab and click the plus to add.
  3. Click qBittorrent in the list.
  4. Enter the IP or hostname of the RealDebridClient in the Host field.
  5. Enter the 6500 in the Port field.
  6. Enter your Username/Password you setup in step 3 above in the Username/Password field.
  7. Leave the other settings as is.
  8. Hit Test and then Save if all is well.
  9. Sonarr will now think you have a regular Torrent client hooked up.

Notice: the progress and ETA reported in Sonarr's Activity tab will not be accurate, but it will report the torrent as completed so it can be processed after it is done downloading.

Build instructions

Prerequisites

  • NodeJS
  • NPM
  • (optional) Angular CLI
  • .NET 5
  • Visual Studio 2019
  • (optional) Resharper
  1. Open the client folder project in VS Code and run npm install.
  2. To debug run ng serve, to build run ng build --prod.
  3. Open the Visual Studio 2019 project RdtClient.sln and Publish the RdtClient.Web to the given PublishFolder target.
  4. When debugging, make sure to run RdtClient.Web.dll and not IISExpress.
  5. The result is found in Publish.

Build docker container

  1. In the root of the project run docker build --tag rdtclient .
  2. To create the docker container run docker run --publish 6500:6500 --detach --name rdtclientdev rdtclient:latest
  3. To stop: docker stop rdtclient
  4. To remove: docker rm rdtclient

About

Real-Debrid Client Proxy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 77.0%
  • TypeScript 14.0%
  • HTML 6.4%
  • Batchfile 1.4%
  • JavaScript 0.6%
  • Dockerfile 0.4%
  • SCSS 0.2%