diff --git a/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent/index.html b/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent/index.html index e5de8ff1d..d8eaa3e5f 100644 --- a/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent/index.html +++ b/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent/index.html @@ -1335,6 +1335,13 @@
This basic example is based on the use of docker images
-Keep in mind the path are setup so it works with hardlinks and instant moves.
-More info HERE
-The default path setup suggested by some docker developers that encourages people to use mounts like /movies
, /tv
and /downloads
is very suboptimal and it makes them look like two or three file systems, even if they aren’t (Because of how Docker’s volumes work). It is the easiest way to get started. While easy to use, it has a major drawback. Mainly losing the ability to hardlink or instant move, resulting in a slower and more I/O intensive copy + delete is used.
But you're able to change this, by not using the pre-defined/recommended paths like:
-/downloads
=> /data/downloads
, /data/usenet
, /data/torrents
/movies
=> /data/media/movies
/tv
=> /data/media/tv
When you make use of the unRaid cache drive for your /data/torrents
share and the torrents in qBittorent are still seeding then the mover can't move files, because they are still in use.
Using the following instructions you will be able to move the files with the use of the qBittorrent API.
-Workflow Rules - [CLICK TO EXPAND]
Danger
-If you're going to make use of this make sure you're using Post-Import Category
in your Starr apps 1 Download clients settings, especially when you're using the Seed Time/Ratio settings in your Indexers settings in the Starr apps.
Else it could happen when the torrents get paused that they get removed by the Starr apps before the seeding goal is reached
If you make use of the Seed Time/Ratio settings in your Indexers settings in the Starr apps1.
Make sure you're using Post-Import Category
in your Starr apps Download clients settings.
Else it could happen when the torrents get paused that they get removed by the Starr apps before the seeding goal is reached.
Attention
+The screenshots are just examples to show you how it should look and where you need to place the data that you need to add, they aren't always a 100% reflection of the actual data and not always 100% up to date with the actual data you need to add.
+With this option we're going to install the qBit API when the Array is started the first time.
Go to your unRaid Dashboard to your settings tab and select in the User Utilities
at the bottom the new plugin you installed User Scripts
.
Select at the bottom ADD NEW SCRIPT
.
A popup will appear where you can give it a name, for this example we're going to use Install qBittorrent API
and then click on OK
.
Click in the list on the cogwheel of the new user scrip you made.
-Copy/Paste in the new windows that opens the following bash command followed by SAVE CHANGES
.
#!/bin/bash
-pip install qbittorrent-api
+pip3 install qbittorrent-api
Select in the schedule list when the script should run, and choose At First Array Start Only
.
Click on RUN IN BACKGROUND
or restart your unRaid server so the qBit API is installed.
With this option we're going to install the qBit API when the unRaid server is started.
On your USB stick/key go to /boot/config
and open the go
file with your favorite editor (VSCode/Notepad++) and copy/paste the following command.
pip install qbittorrent-api
+pip3 install qbittorrent-api
Restart your unRaid Server, or run the above command from the terminal.
@@ -2317,8 +2294,8 @@ pip install qbittorrent-api
# Set Number of Days to stop torrents for the move
days = 2
qbt_host = '192.168.2.200:8080'
-qbt_user = admin
-qbt_pass = adminadmin
+qbt_user = 'admin'
+qbt_pass = 'adminadmin'
# --DEFINE VARIABLES--#
qbt_user
=> Your used qBittorrent User Name
if you have authentication enabled.qbt_pass
=> Your used qBittorrent Password
if you have authentication enabled.If you don't use the unRaid Mover Tuning
app, You might need to change line 54 from os.system('/usr/local/sbin/mover.old start')
to os.system('/usr/local/sbin/mover start')
Now it's time to setup the scheduler when the mover should run.
Go to your unRaid Dashboard to your settings tab and select in the User Utilities
at the bottom the new plugin you installed User Scripts
.
Select at the bottom ADD NEW SCRIPT
.
A popup will appear where you can give it a name, for this example we're going to use qBittorrent Mover
and then click on OK
.
Click in the list on the cogwheel of the new user scrip you made.
-Copy/Paste in the new windows that opens the following bash command followed by SAVE CHANGES
.
#!/bin/bash
/usr/local/emhttp/plugins/dynamix/scripts/notify -s "qBittorrent Mover" -d "qBittorrent Mover starting @ `date +%H:%M:%S`."
@@ -2371,33 +2336,19 @@ pip install qbittorrent-api
Info
Replace the /mnt/user/data/scripts/mover.py
path to the path where you placed your python script.
Select in the schedule list when the script should run, and choose Custom
After changing to Custom
you get on the right a extra option where you can setup your cron schedule when it should be run.
For this example we're going to let the script run a 4am at night. 0 4 * * *
Setup your own schedule HERE
- - -Questions or Suggestions?
If you have questions or suggestions click the chat badge to join the Discord Support Channel where you can ask your questions directly and get live support.