Deployed 5a36bf96 with MkDocs version: 1.3.1

gh-pages
2 years ago
parent dc1cee2ec3
commit 25bdd2865f

@ -1335,6 +1335,13 @@
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#warning" class="md-nav__link">
Warning
</a>
</li>
<li class="md-nav__item">
<a href="#needed" class="md-nav__link">
Needed
@ -2083,6 +2090,13 @@
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#warning" class="md-nav__link">
Warning
</a>
</li>
<li class="md-nav__item">
<a href="#needed" class="md-nav__link">
Needed
@ -2197,43 +2211,27 @@
<h1 id="how-to-run-the-unraid-mover-for-qbittorent-seeding-torrents">How to run the unRaid mover for qBittorent seeding torrents<a class="headerlink" href="#how-to-run-the-unraid-mover-for-qbittorent-seeding-torrents" title="Permanent link"></a></h1>
<!-- BEGIN INCLUDE ../../../../includes/downloaders/basic-setup.md -->
<p>This basic example is based on the use of docker images</p>
<div class="admonition tip">
<p>Keep in mind the path are setup so it works with hardlinks and instant moves.</p>
<p>More info <a href="/Hardlinks/Hardlinks-and-Instant-Moves/" rel="noopener noreferrer" target="_blank">HERE</a></p>
</div>
<!-- BEGIN INCLUDE ../hardlinks/bad-path-suggestion.md -->
<div class="admonition attention">
<p>The default path setup suggested by some docker developers that encourages people to use mounts like <code>/movies</code>, <code>/tv</code> and <code>/downloads</code> is very suboptimal and it makes them look like two or three file systems, even if they arent (<em>Because of how Dockers volumes work</em>). 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.</p>
</div>
<!-- END INCLUDE -->
<!-- --8<-- "includes/hardlinks/bad-path-suggestion.md" -->
<div class="admonition attention">
<p>But you're able to change this, by not using the pre-defined/recommended paths like:</p>
<ul>
<li><code>/downloads</code> =&gt; <code>/data/downloads</code>, <code>/data/usenet</code>, <code>/data/torrents</code></li>
<li><code>/movies</code> =&gt; <code>/data/media/movies</code></li>
<li><code>/tv</code> =&gt; <code>/data/media/tv</code></li>
</ul>
</div>
<!-- END INCLUDE -->
<!-- --8<-- "includes/downloaders/basic-setup.md" -->
<p>When you make use of the unRaid cache drive for your <code>/data/torrents</code> share and the torrents in qBittorent are still seeding then the mover can't move files, because they are still in use.</p>
<p>Using the following instructions you will be able to move the files with the use of the qBittorrent API.</p>
<details class="summary">
<summary>Workflow Rules - [CLICK TO EXPAND]</summary>
<div class="admonition summary">
<p class="admonition-title">Workflow Rules - [CLICK TO EXPAND]</p>
<ol>
<li>Pause torrents older than last x days.</li>
<li>Run the mover.</li>
<li>Resume the torrents once the mover is completed.</li>
</ol>
</details>
</div>
<h2 id="warning">Warning<a class="headerlink" href="#warning" title="Permanent link"></a></h2>
<div class="admonition danger">
<p class="admonition-title">Danger</p>
<p>If you're going to make use of this make sure you're using <code>Post-Import Category</code> in your Starr apps <sup id="fnref:1"><a class="footnote-ref" href="#fn:1">1</a></sup> Download clients settings, especially when you're using the Seed Time/Ratio settings in your Indexers settings in the Starr apps.</p>
<p>Else it could happen when the torrents get paused that they get removed by the Starr apps before the seeding goal is reached <img alt="‼" class="twemoji" src="https://twemoji.maxcdn.com/v/latest/svg/203c.svg" title=":bangbang:" /></p>
<p class="admonition-title">If you make use of the Seed Time/Ratio settings in your Indexers settings in the Starr apps<sup id="fnref:1"><a class="footnote-ref" href="#fn:1">1</a></sup>.<br> Make sure you're using <code>Post-Import Category</code> in your Starr apps Download clients settings.<br>Else it could happen when the torrents get paused that they get removed by the Starr apps before the seeding goal is reached.</p>
</div>
<div class="admonition attention">
<p class="admonition-title">Attention</p>
<p>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.</p>
<ul>
<li>Always follow the data described in the guide.</li>
<li>If you got any questions or aren't sure just click the chat badge to join the Discord Channel where you can ask your questions directly.</li>
</ul>
</div>
<h2 id="needed">Needed<a class="headerlink" href="#needed" title="Permanent link"></a></h2>
<h3 id="the-script">The Script<a class="headerlink" href="#the-script" title="Permanent link"></a></h3>
@ -2265,48 +2263,27 @@
<h4 id="user-scripts">User scripts<a class="headerlink" href="#user-scripts" title="Permanent link"></a></h4>
<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>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="User Scripts" href="../images/Unraid-settings-user-scripts-icon.png"><img alt="User Scripts" src="../images/Unraid-settings-user-scripts-icon.png" /></a></div></p>
</details>
<p>Select at the bottom <code>ADD NEW SCRIPT</code>.</p>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Add New Script" href="../images/Unraid-user-scripts-add-new-script-icon.png"><img alt="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>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Install qBittorrent API" href="../images/Unraid-user-scripts-add-new-script-enter-name.png"><img alt="Install qBittorrent API" src="../images/Unraid-user-scripts-add-new-script-enter-name.png" /></a></div></p>
</details>
<p>Click in the list on the cogwheel of the new user scrip you made.</p>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Select user script" href="../images/Unraid-settings-user-scripts-list-select-qbit-api.png"><img alt="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>
<div class="highlight"><pre><span></span><code><span class="ch">#!/bin/bash</span>
pip install qbittorrent-api
pip3 install qbittorrent-api
</code></pre></div>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Bash script" href="../images/Unraid-settings-user-scripts-qbit-api.png"><img alt="Bash script" src="../images/Unraid-settings-user-scripts-qbit-api.png" /></a></div></p>
</details>
<p>Select in the schedule list when the script should run, and choose <code>At First Array Start Only</code>.</p>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Set Run Time" href="../images/Unraid-settings-user-scripts-qbit-api-schedule.png"><img alt="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>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="RUN IN BACKGROUND" href="../images/Unraid-settings-user-scripts-qbit-api-run-background.png"><img alt="RUN IN BACKGROUND" src="../images/Unraid-settings-user-scripts-qbit-api-run-background.png" /></a></div></p>
</details>
<hr />
<h4 id="go-file">Go File<a class="headerlink" href="#go-file" title="Permanent link"></a></h4>
<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 with your favorite editor (<a href="https://code.visualstudio.com/" rel="noopener noreferrer" target="_blank">VSCode</a>/<a href="https://notepad-plus-plus.org/downloads/" rel="noopener noreferrer" target="_blank">Notepad++</a>) and copy/paste the following command.</p>
<div class="highlight"><pre><span></span><code>pip install qbittorrent-api
<div class="highlight"><pre><span></span><code>pip3 install qbittorrent-api
</code></pre></div>
<p>Restart your unRaid Server, or run the above command from the terminal.</p>
<hr />
@ -2317,8 +2294,8 @@ pip install qbittorrent-api
<span class="c1"># Set Number of Days to stop torrents for the move</span>
<span class="n">days</span> <span class="o">=</span> <span class="mi">2</span>
<span class="n">qbt_host</span> <span class="o">=</span> <span class="s1">&#39;192.168.2.200:8080&#39;</span>
<span class="n">qbt_user</span> <span class="o">=</span> <span class="n">admin</span>
<span class="n">qbt_pass</span> <span class="o">=</span> <span class="n">adminadmin</span>
<span class="n">qbt_user</span> <span class="o">=</span> <span class="s1">&#39;admin&#39;</span>
<span class="n">qbt_pass</span> <span class="o">=</span> <span class="s1">&#39;adminadmin&#39;</span>
<span class="c1"># --DEFINE VARIABLES--#</span>
</code></pre></div>
<ul>
@ -2327,7 +2304,7 @@ pip install qbittorrent-api
<li><code>qbt_user</code> =&gt; Your used qBittorrent <code>User Name</code> if you have authentication enabled.</li>
<li><code>qbt_pass</code> =&gt; Your used qBittorrent <code>Password</code> if you have authentication enabled.</li>
</ul>
<div class="admonition failure">
<div class="admonition attention">
<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>
<h4 id="copy-script-to-your-preferred-location">Copy script to your preferred location<a class="headerlink" href="#copy-script-to-your-preferred-location" title="Permanent link"></a></h4>
@ -2340,25 +2317,13 @@ pip install qbittorrent-api
<h4 id="final-steps">Final steps<a class="headerlink" href="#final-steps" title="Permanent link"></a></h4>
<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>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="User Scripts" href="../images/Unraid-settings-user-scripts-icon.png"><img alt="User Scripts" src="../images/Unraid-settings-user-scripts-icon.png" /></a></div></p>
</details>
<p>Select at the bottom <code>ADD NEW SCRIPT</code>.</p>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Add New Script" href="../images/Unraid-user-scripts-add-new-script-icon.png"><img alt="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>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="qBittorrent Mover" href="../images/Unraid-user-scripts-add-new-script-enter-name-qbt.png"><img alt="qBittorrent Mover" src="../images/Unraid-user-scripts-add-new-script-enter-name-qbt.png" /></a></div></p>
</details>
<p>Click in the list on the cogwheel of the new user scrip you made.</p>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Select user script" href="../images/Unraid-settings-user-scripts-list-select-qbit-mover.png"><img alt="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>
<div class="highlight"><pre><span></span><code><span class="ch">#!/bin/bash</span>
/usr/local/emhttp/plugins/dynamix/scripts/notify -s <span class="s2">&quot;qBittorrent Mover&quot;</span> -d <span class="s2">&quot;qBittorrent Mover starting @ `date +%H:%M:%S`.&quot;</span>
@ -2371,33 +2336,19 @@ pip install qbittorrent-api
<p class="admonition-title">Info</p>
<p>Replace the <code>/mnt/user/data/scripts/mover.py</code> path to the path where you placed your python script.</p>
</div>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Bash script" href="../images/Unraid-settings-user-scripts-qbit-mover.png"><img alt="Bash script" src="../images/Unraid-settings-user-scripts-qbit-mover.png" /></a></div></p>
</details>
<p>Select in the schedule list when the script should run, and choose <code>Custom</code></p>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Set Run Time" href="../images/Unraid-settings-user-scripts-qbit-mover-schedule.png"><img alt="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 <a href="https://crontab.guru/">HERE</a></p>
<details class="check">
<summary>Screenshot Example - [CLICK TO EXPAND]</summary>
<p><div class="lightgallery"><a data-sub-html="Set Run Time" href="../images/Unraid-settings-user-scripts-qbit-mover-cron.png"><img alt="Set Run Time" src="../images/Unraid-settings-user-scripts-qbit-mover-cron.png" /></a></div></p>
</details>
<!-- BEGIN INCLUDE ../../../../includes/support.md -->
<hr />
<div class="admonition help">
<p class="admonition-title">Questions or Suggestions?</p>
<p>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.</p>
<p><a href="https://trash-guides.info/discord" rel="noopener noreferrer" target="_blank"><img alt="Discord chat" src="https://img.shields.io/discord/492590071455940612?style=for-the-badge&amp;color=4051B5&amp;logo=discord" /></a></p>
</div>
<!-- END INCLUDE -->
<!-- --8<-- "includes/support.md" -->
<div class="footnote">
<hr />
<ol>
@ -2415,7 +2366,7 @@ pip install qbittorrent-api
<small>
Last update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-datetime">August 15, 2022 16:42:07</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-datetime">September 7, 2022 20:29:03</span>
</small>

File diff suppressed because one or more lines are too long

Binary file not shown.
Loading…
Cancel
Save