<p>The script needs the qBit API to work, so we need to make sure it's installed when your unRaid server is booted or when the Array is started the first time.</p>
<p>You can choose from the following 2 options how you want to install it, depending what you preferce.</p>
<p>With this option we're going to install the qBit API when the Array is started the first time.</p>
<p>Go to your unRaid Dashboard to your settings tab and select in the <code>User Utilities</code> at the bottom the new plugin you installed <code>User Scripts</code>.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p>Select at the bottom <code>ADD NEW SCRIPT</code>.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><divclass="lightgallery"><adata-sub-html="Add New Script"href="../images/Unraid-user-scripts-add-new-script-icon.png"><imgalt="Add New Script"src="../images/Unraid-user-scripts-add-new-script-icon.png"/></a></div></p>
</details>
<p>A popup will appear where you can give it a name, for this example we're going to use <code>Install qBittorrent API</code> and then click on <code>OK</code>.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p>Click in the list on the cogwheel of the new user scrip you made.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><divclass="lightgallery"><adata-sub-html="Select user script"href="../images/Unraid-settings-user-scripts-list-select-qbit-api.png"><imgalt="Select user script"src="../images/Unraid-settings-user-scripts-list-select-qbit-api.png"/></a></div></p>
</details>
<p>Copy/Paste in the new windows that opens the following bash command followed by <code>SAVE CHANGES</code>.</p>
@ -2376,28 +2383,29 @@
pip install qbittorrent-api
</code></pre></div>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p>Select in the schedule list when the script should run, and choose <code>At First Array Start Only</code>.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><divclass="lightgallery"><adata-sub-html="Set Run Time"href="../images/Unraid-settings-user-scripts-qbit-api-schedule.png"><imgalt="Set Run Time"src="../images/Unraid-settings-user-scripts-qbit-api-schedule.png"/></a></div></p>
</details>
<p>Click on <code>RUN IN BACKGROUND</code> or restart your unRaid server so the qBit API is installed.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><divclass="lightgallery"><adata-sub-html="RUN IN BACKGROUND"href="../images/Unraid-settings-user-scripts-qbit-api-run-background.png"><imgalt="RUN IN BACKGROUND"src="../images/Unraid-settings-user-scripts-qbit-api-run-background.png"/></a></div></p>
<p>With this option we're going to install the qBit API when the unRaid server is started.</p>
<p>On your USB stick/key go to <code>/boot/config</code> and open the <code>go</code> file in your favorite editor and copy/paste the following command.</p>
<p>On your USB stick/key go to <code>/boot/config</code> and open the <code>go</code> file with your favorite editor (<ahref="https://code.visualstudio.com/"rel="noopener noreferrer"target="_blank">VSCode</a>/<ahref="https://notepad-plus-plus.org/downloads/"rel="noopener noreferrer"target="_blank">Notepad++</a>) and copy/paste the following command.</p>
<p>Edit the script with your favorite editor (<ahref="https://code.visualstudio.com/"rel="noopener noreferrer"target="_blank">VSCode</a>/<ahref="https://notepad-plus-plus.org/downloads/"rel="noopener noreferrer"target="_blank">Notepad++</a>) you downloaded at the beginning of the guide <ahref="#the-script">HERE</a>.</p>
<p>You only need to edit a few options in the script</p>
<spanclass="c1"># Set Number of Days to stop torrents for the move</span>
@ -2409,7 +2417,7 @@ pip install qbittorrent-api
</code></pre></div>
<ul>
<li><code>days</code> => Set Number of Days to stop torrents for the move.</li>
<li><code>qbt_host</code> => The URL you use to access qBittorrent locally.</li>
<li><code>qbt_host</code> => The URL you use to access qBittorrent locally. (<em>the</em><code>'</code><em>should remain</em>)</li>
<li><code>qbt_user</code> => Your used qBittorrent <code>User Name</code> if you have authentication enabled.</li>
<li><code>qbt_pass</code> => Your used qBittorrent <code>Password</code> if you have authentication enabled.</li>
</ul>
@ -2417,7 +2425,7 @@ pip install qbittorrent-api
<p>If you don't use the unRaid <code>Mover Tuning</code> app, You might need to change <strong>line 54</strong> from <code>os.system('/usr/local/sbin/mover.old start')</code> to <code>os.system('/usr/local/sbin/mover start')</code></p>
</div>
<h4id="copy-script-to-your-preferred-location">Copy script to your preferred location<aclass="headerlink"href="#copy-script-to-your-preferred-location"title="Permanent link">¶</a></h4>
<p>Now it's time to place the script somewhere easy to access/remember.</p>
<p>Now it's time to place the script you just edited somewhere easy to access/remember.</p>
<p>Suggestions:</p>
<ul>
<li><code>/mnt/user/appdata/qbittorrent/scripts</code> (yes you need to create this folder your self)</li>
<p>Now it's time to setup the scheduler when the mover should run.</p>
<p>Go to your unRaid Dashboard to your settings tab and select in the <code>User Utilities</code> at the bottom the new plugin you installed <code>User Scripts</code>.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p>Select at the bottom <code>ADD NEW SCRIPT</code>.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><divclass="lightgallery"><adata-sub-html="Add New Script"href="../images/Unraid-user-scripts-add-new-script-icon.png"><imgalt="Add New Script"src="../images/Unraid-user-scripts-add-new-script-icon.png"/></a></div></p>
</details>
<p>A popup will appear where you can give it a name, for this example we're going to use <code>qBittorrent Mover</code> and then click on <code>OK</code>.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p>Click in the list on the cogwheel of the new user scrip you made.</p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><divclass="lightgallery"><adata-sub-html="Select user script"href="../images/Unraid-settings-user-scripts-list-select-qbit-mover.png"><imgalt="Select user script"src="../images/Unraid-settings-user-scripts-list-select-qbit-mover.png"/></a></div></p>
</details>
<p>Copy/Paste in the new windows that opens the following bash command followed by <code>SAVE CHANGES</code>.</p>
<p>Select in the schedule list when the script should run, and choose <code>Custom</code></p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><divclass="lightgallery"><adata-sub-html="Set Run Time"href="../images/Unraid-settings-user-scripts-qbit-mover-schedule.png"><imgalt="Set Run Time"src="../images/Unraid-settings-user-scripts-qbit-mover-schedule.png"/></a></div></p>
</details>
<p>After changing to <code>Custom</code> you get on the right a extra option where you can setup your cron schedule when it should be run.</p>
<p>For this example we're going to let the script run a 4am at night. <code>0 4 * * *</code></p>
<p>Setup your own schedule <ahref="https://crontab.guru/">HERE</a></p>
<detailsclass="check">
<summary>Example - [CLICK TO EXPAND]</summary>
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><divclass="lightgallery"><adata-sub-html="Set Run Time"href="../images/Unraid-settings-user-scripts-qbit-mover-cron.png"><imgalt="Set Run Time"src="../images/Unraid-settings-user-scripts-qbit-mover-cron.png"/></a></div></p>
</details>
<hr/>
@ -2485,6 +2493,9 @@ pip install qbittorrent-api
<liid="fn:1">
<p>Starr apps = Sonarr/Radarr etc. Doesn't Starr apps sound better then <code>The arr(s)</code> ? <aclass="footnote-backref"href="#fnref:1"title="Jump back to footnote 1 in the text">↩</a></p>
</li>
<liid="fn:2">
<p>These needs to be installed from the Nerd Tools. <aclass="footnote-backref"href="#fnref:2"title="Jump back to footnote 2 in the text">↩</a><aclass="footnote-backref"href="#fnref2:2"title="Jump back to footnote 2 in the text">↩</a></p>