-
Notifications
You must be signed in to change notification settings - Fork 130
Setup Guides
This setup guide will follow the readme closely, but will go into more detail in some areas. This setup will utilize "screens", which are virtual Linux terminals.
- open a linux terminal
- run
apt install screen
- run
apt install git
- install python 3.XX if not present
- install pip if not present
Please keep in mind that most debrid services dont allow you to access their service from multiple IP addresses in parallel. This is not an issue if you have a Plex server running, since everything you stream through plex (from any location, no matter how many in parallel) is routed through your servers IP address. While you have your plex server running though, you should not download from your debrid service in any other way than through plex.
- open a linux terminal
- run
wget https://github.com/itsToggle/rclone_RD/releases/download/v1.58.1-rd.2.2/rclone-linux-arm64
- run
chmod u+x ./rclone-linux-arm64
- run
./rclone-linux-arm64 config
- type
n
to create a new rclone remote - type
realdebrid
to name your new remote "realdebrid" - type
47
to choose the remote type "47) realdebrid" - enter your realdebrid API key (https://real-debrid.com/apitoken)
- choose "no" when asked for advanced settings
- continue through the rest of the prompted instructions.
- type
q
to quit the rclone config menu. - run
mkdir torrents
to create a directory named "torrents" - run
screen -S rclone
to create a new virtual terminal named "rclone" - press enter. You are now in the virtual terminal.
- run
./rclone-linux-arm64 mount realdebrid: torrents --dir-cache-time 10s --allow-other
- you should see the message "The service rclone has been started"
- press
ctrl
+a
and then pressd
to exit out of the virtual terminal. - run
ls torrents
to confirm that you can now see the 3 folders "default", "movies" and "shows". If you don't see anything or you get errors, runscreen -r rclone
to return to your virtual rclone terminal and investigate any errors. - you have successfully mounted realdebrid. You can return to your virtual rclone terminal any time by running
screen -r rclone
.
follow any number of online guides on how to install and start your Plex server. Once the server is running and you have claimed it with your Plex account, follow these steps:
- open a linux terminal
- run
chown -R plex:plex torrents
- open the Plex webUI
- create a new Plex library for movies, add the folders "/torrents/default" and "/torrents/movies"
- create a new Plex library for shows, add the folders "/torrents/default" and "/torrents/shows"
- Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
- Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly
- open a linux terminal
- run
git clone https://github.com/itsToggle/plex_debrid
- run
pip install -r ./plex_debrid/requirements.txt
- run
screen -S plex_debrid
to create a new virtual terminal named "plex_debrid" - press enter. You are now in the virtual terminal.
- run
python ./plex_debrid/main.py
- follow the setup instructions
- choose option "1) Run" to run the download automation
- press
ctrl
+a
and then pressd
to exit out of the virtual terminal. You can return to the terminal any time by runningscreen -r plex_debrid
This setup guide will follow the readme closely, but will go into more detail in some areas. This setup will utilize "screens", which are virtual Linux terminals.
- open a linux terminal
- run
apt install screen
- run
apt install git
- install python 3.XX if not present
- install pip if not present
Please keep in mind that most debrid services dont allow you to access their service from multiple IP addresses in parallel. This is not an issue if you have a Plex server running, since everything you stream through plex (from any location, no matter how many in parallel) is routed through your servers IP address. While you have your plex server running though, you should not download from your debrid service in any other way than through plex.
- open a linux terminal
- run
wget https://github.com/itsToggle/rclone_RD/releases/download/v1.58.1-rd.2.2/rclone-linux
- run
chmod u+x ./rclone-linux
- run
./rclone-linux config
- type
n
to create a new rclone remote - type
realdebrid
to name your new remote "realdebrid" - type
47
to choose the remote type "47) realdebrid" - enter your realdebrid API key (https://real-debrid.com/apitoken)
- choose "no" when asked for advanced settings
- continue through the rest of the prompted instructions.
- type
q
to quit the rclone config menu. - run
mkdir torrents
to create a directory named "torrents" - run
screen -S rclone
to create a new virtual terminal named "rclone" - press enter. You are now in the virtual terminal.
- run
./rclone-linux mount realdebrid: torrents --dir-cache-time 10s --allow-other
- you should see the message "The service rclone has been started"
- press
ctrl
+a
and then pressd
to exit out of the virtual terminal. - run
ls torrents
to confirm that you can now see the 3 folders "default", "movies" and "shows". If you don't see anything or you get errors, runscreen -r rclone
to return to your virtual rclone terminal and investigate any errors. - you have successfully mounted realdebrid. You can return to your virtual rclone terminal any time by running
screen -r rclone
.
follow any number of online guides on how to install and start your Plex server. Once the server is running and you have claimed it with your Plex account, follow these steps:
- open a linux terminal
- run
chown -R plex:plex torrents
- open the Plex webUI
- create a new Plex library for movies, add the folders "/torrents/default" and "/torrents/movies"
- create a new Plex library for shows, add the folders "/torrents/default" and "/torrents/shows"
- Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
- Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly
- open a linux terminal
- run
git clone https://github.com/itsToggle/plex_debrid
- run
pip install -r ./plex_debrid/requirements.txt
- run
screen -S plex_debrid
to create a new virtual terminal named "plex_debrid" - press enter. You are now in the virtual terminal.
- run
python ./plex_debrid/main.py
- follow the setup instructions
- choose option "1) Run" to run the download automation
- press
ctrl
+a
and then pressd
to exit out of the virtual terminal. You can return to the terminal any time by runningscreen -r plex_debrid
This setup guide will follow the readme closely, but will go into more detail in some areas.
- install python 3.XX
- install pip (https://pypi.org/project/pip/)
- install winfsp (https://winfsp.dev/)
Please keep in mind that most debrid services dont allow you to access their service from multiple IP addresses in parallel. This is not an issue if you have a Plex server running, since everything you stream through plex (from any location, no matter how many in parallel) is routed through your servers IP address. While you have your plex server running though, you should not download from your debrid service in any other way than through plex.
- download the latest 'rclone.exe' file from here: https://github.com/itsToggle/rclone_RD/releases
- create a folder on your desktop named "rclone" and open it
- copy the downloaded "rclone.exe" file to that folder.
- windows 10: in the opened windows explorer, click on the "file" ribbon and then click on "open PowerShell here" to open a terminal windows 11: right-click on the "rclone" folder on your desktop. Press and hold the
shift
key on your keyboard and click on "show more options". Select "Open PowerShell here". A terminal opens. - inside the terminal, write the command
./rclone.exe config
and press enter - type
n
to create a new rclone remote - enter
realdebrid
as the name of the remote - enter
47
to choose the "realdebrid" remote type - enter your realdebrid API key (https://real-debrid.com/apitoken)
- choose
no
when asked to edit the advanced configuration - follow the rest of the prompted instructions
- enter
q
to quit out of the rclone config menu - enter
./rclone.exe cmount realdebrid: X: --dir-cache-time 10s
to mount realdebrid. A new virtual computer drive with the letterX
namedrealdebrid
should show up on your computer. You should find 3 folders inside it, "movies", "shows" and "default". - keep the terminal opened in order to keep rclone running. If everything works and you want to run rclone in the background, you can close the terminal and open it again like described in step 4. Now run the command
./rclone.exe cmount realdebrid: X: --dir-cache-time 10s --no-console
. The console should close and rclone should run in the background. For an autostart routine for both rclone and plex_debrid check out: https://discord.com/channels/1021692389368283158/1021692389812871169/1072245007723020348
-
follow any number of online guides on how to install and start your Plex server. Once the server is running and you have claimed it with your Plex account, follow these steps:
-
open the Plex webUI
-
create a new Plex library for movies, add the folders "X:/default" and "X:/movies"
-
create a new Plex library for shows, add the folders "X:/default" and "X:/shows"
-
Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
-
Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly
- open https://GitHub.com/itsToggle/plex_debrid click on "code" (top right) and then "download zip". Extract the downloaded zip to your desktop, which should create a "plex_debrid" folder. In this folder you should find multiple files.
- windows 10: open the "plex_debrid" folder. in the opened windows explorer, click on the "file" ribbon and then click on "open PowerShell here" to open a terminal windows 11: right-click on the "plex_debrid" folder on your desktop. Press and hold the
shift
key on your keyboard and click on "show more options". Select "Open PowerShell here". A terminal opens. - inside the terminal, enter the command
pip install -r requirements.txt
and pressenter
- start the script inside this terminal by running the command
python ./main.py
- follow the prompted instructions and the main readme from here.
- For an autostart routine for both rclone and plex_debrid check out: https://discord.com/channels/1021692389368283158/1021692389812871169/1072245007723020348
This setup guide will follow the readme closely, but will go into more detail in some areas.
- install docker
Please keep in mind that most debrid services dont allow you to access their service from multiple IP addresses in parallel. This is not an issue if you have a Plex server running, since everything you stream through plex (from any location, no matter how many in parallel) is routed through your servers IP address. While you have your plex server running though, you should not download from your debrid service in any other way than through plex.
- run
sudo mkdir -p ~/rclone/config
- run
sudo mkdir -p ~/rclone/cache
- determine your systems architecture (amd64 or arm64). If you are using a PI or oracle, your architecture is arm64. If you are using a desktop PC, your architecture is amd64.
- run
docker plugin install itstoggle/docker-volume-rclone_rd:amd64 args="-v" --alias rclone --grant-all-permissions config=~/rclone/config cache=~/rclone/cache
(hereamd64
architecture was used - replaceamd64
witharm64
in the command if needed) - run
docker volume create realdebrid -d rclone -o type=realdebrid -o realdebrid-api_key=your-api-key-here -o allow-other=true -o dir-cache-time=10s
(replaceyour-api-key-here
with your realdebrid api key which you can find on https://real-debrid.com/apitoken) - to check if the volume has been created successfully, run
docker run --rm -i -v=realdebrid:/tmp/myvolume busybox find /tmp/myvolume
- you should see your torrent files from realdebrid.com/torrents being printed. - you have successfully created a realdebrid docker volume. You can now mount this volume into any docker container.
follow any number of online guides on how to install and start your Plex server docker container. Once the server is running and you have claimed it with your Plex account, follow these steps:
- attach the realdebrid volume to your plex docker container using the flag
-v=realdebrid:/torrents
in your plex containers "run" command. If you are using compose for your plex container, add the realdebrid volume similar to this:
version: '3'
services:
pms-docker:
image: plexinc/pms-docker:plexpass
container_name: plex
ports:
- ...
volumes:
- ...
- realdebrid:/torrents
volumes:
realdebrid:
external: true
- start your plex container
- open the Plex webUI
- create a new Plex library for movies, add the folders "/torrents/default" and "/torrents/movies"
- create a new Plex library for shows, add the folders "/torrents/default" and "/torrents/shows"
- Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
- Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly
- run
docker pull itstoggle/plex_debrid
- run
docker run -v /path/to/config:/config --net host -ti itstoggle/plex_debrid
. Where /path/to/config is the directory path where you want to save your plex_debrid config data - follow the setup instructions
- choose option "1) Run" to run the download automation
provided by discord user @bunny, huge shout-out to him!
Please note that this readme only includes some setup assistance for Nvidia Shield TV Pro. Check the main branch for a more detailed readme regarding the actual plex_debrid usage!
If you have any troubles with any part of this project, please come join us on the Plex_Debrid discord and we are more than happy to help you out!
The next few steps assume you have a rooted Nvidia Shield TV Pro.
If your Shield is not yet rooted, please check out the guides provided by the geniuses over at the XDA forums: https://forum.xda-developers.com/t/patched-boot-imgs-achieve-root-on-stock-firmware-and-keep-ai-upscaling.4524873/.
This guide assumes basic knowledge of Magisk, ADB and other Android tools. If your device is not yet rooted, you will learn all about these as you go through the process. If you rooted your device a while ago, and may be a bit rusty, head over to https://forum.xda-developers.com/c/nvidia-shield-tv-shield-tv-pro-2019.9577/.
You may want a mouse and keyboard plugged into your shield for this. Alternately, the Shield App has good trackpad and typing functionaliyt.
On your PC download the following:
- Magisk (apk file) (https://github.com/topjohnwu/Magisk)
- Rclone Magisk Module (https://github.com/AvinashReddy3108/rclone-mount-magisk)
- Termux (https://github.com/termux/termux-app)
- Safetynet Fix (https://github.com/kdrag0n/safetynet-fix) (This enables AI upscaling)
On your Shield install File XPlore from the Google Play Store (This is what we will use to install all the above)
Note, we haven't managed to get itsToggle's rclone fork working just yet, so are using original rclone and webdav.
First things first, let’s get you prepared to mount your debrid service. Do this by getting your rclone config file ready to go.
On your shield:
- Create a folder anywhere you like called /.rclone/
- Install rclone on your computer and run the config, then grab the config file from C:\Users\you\AppData\Roaming\rclone and save it into your new /.rclone/ folder (this step is necessary because the config encrypts your password)
Tip: You can run the config through a WebGUI if you're more comfortable with that.
I found the easiest way to load items onto the shield was with the inbuilt ‘network haring’ functionality.
To do this, using your shield navigate to the settings menu and then to 'sharing'. Enable 'network sharing'. Clicking into here will show you credentials you can use to access the Shield from your file explorer on your PC.
Put the files you downloaded before onto your Shield:
- Magisk (.apk)
- Rclone Magisk Module (.zip)
- Termux (.apk)
- Safetynet Fix (.zip)
Put your /.rclone/ folder containing your conf file on the root folder.
Using File Xplore, install the Magisk apk file. This will walk you through steps for installation.
Using Magisk, install your Rclone and Safetynet modules.
When installing Rclone you should get a message saying the drive has been mounted successfully.
If you got an error that your config file could not be loaded, please double check that all the details are correct. You can try running rclone config through Termux and see how you go, but run pkg update and termux-setup-storage beforehand.
On shield
- Set up Plex for the first time on your Shield
On your PC: 3) Create a plex 'movie' library of the mounted virtual drive or add the virtual drive to an existing 'movie' library. (/mnt/cloud/your-remote) 4) Create a plex 'shows' library of the mounted virtual drive or add the virtual drive to an existing 'shows' library. (/mnt/cloud/your-remote)
Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
On Shield, using Termux
- run command 'apt update && pkg update'
- run command 'pkg install python'
- run command 'pkg install git'
- run command 'termux-setup-storage', allow the permission
- run command 'git clone https://github.com/itsToggle/plex_debrid'
- run command 'pip install -r plex_debrid/requirements.txt'
- run command 'python plex_debrid/main.py'
- The script will guide you through the initial setup.
- Choose option '1' to run the download automation. Choose option '2' to explore or edit the Settings.
You're done! Read the rest of the main README for more detailed settings and info.