Deployed de9652a2 with MkDocs version: 1.5.3

gh-pages
12 months ago
parent 4fec0513be
commit 017a63d3a1

@ -3660,31 +3660,8 @@ deactivate<span class="w"> </span><span class="c1"># to leave the environment</s
</div>
<hr />
<h3 id="script">Script<a class="headerlink" href="#script" title="Permanent link"></a></h3>
<p>Now, using your favorite text 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>) edit the script you downloaded at the beginning of the guide (<a href="#qbit-mover-script">HERE</a>).</p>
<p>You only need to change a few options at the top of the script.</p>
<div class="highlight"><pre><span></span><code><span class="c1"># --DEFINE VARIABLES--#</span>
<span class="c1"># Set Number of Days to stop torrents between two offsets</span>
<span class="c1"># days_from set to 0 will pause any torrents from todays date</span>
<span class="c1"># days_to will be the upper limit of how far you want to pause torrents to</span>
<span class="n">days_from</span> <span class="o">=</span> <span class="mi">0</span>
<span class="n">days_to</span> <span class="o">=</span> <span class="mi">2</span>
<span class="n">qbt_host</span> <span class="o">=</span> <span class="s2">&quot;192.168.2.200:8080&quot;</span>
<span class="n">qbt_user</span> <span class="o">=</span> <span class="kc">None</span>
<span class="n">qbt_pass</span> <span class="o">=</span> <span class="kc">None</span>
<span class="c1"># --DEFINE VARIABLES--#</span>
</code></pre></div>
<ul>
<li><code>days_from</code> =&gt; Set Number of Days to stop torrents <strong>from</strong> for the move.</li>
<li><code>days_to</code> =&gt; Set Number of Days to stop torrents <strong>to</strong> for the move.</li>
<li><code>qbt_host</code> =&gt; The URL you use to access qBittorrent locally. (<em>the</em> <code>"</code> <em>should remain</em>)</li>
<li><code>qbt_user</code> =&gt; Your used qBittorrent <code>User Name</code> if you have authentication enabled. Add <code>'</code> either side.</li>
<li><code>qbt_pass</code> =&gt; Your used qBittorrent <code>Password</code> if you have authentication enabled. Add <code>'</code> either side.</li>
</ul>
<div class="admonition danger">
<p class="admonition-title">If you have authentication enabled. Add <code>'</code> either side of your User/Password.</p>
</div>
<div class="admonition warning">
<p>Depending on whether you use the unRaid <code>Mover Tuning</code> app, You might need to change <strong>line 68</strong>:</p>
<p>Depending on whether you use the unRaid <code>Mover Tuning</code> app, You might need to change <strong>line 77</strong>:</p>
<ul>
<li>If you do not use <code>Mover Tuning</code>, change <strong>line 68</strong> from <code>os.system('/usr/local/sbin/mover.old start')</code> to <code>os.system('/usr/local/sbin/mover start')</code></li>
<li>If you use <code>Mover Tuning</code> but <strong>don't</strong> want to use it for the script, do not change <strong>line 68</strong></li>
@ -3715,16 +3692,17 @@ deactivate<span class="w"> </span><span class="c1"># to leave the environment</s
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="c1">#!/bin/bash</span>
<span class="w"> </span>/usr/local/emhttp/plugins/dynamix/scripts/notify<span class="w"> </span>-s<span class="w"> </span><span class="s2">&quot;qBittorrent Mover&quot;</span><span class="w"> </span>-d<span class="w"> </span><span class="s2">&quot;qBittorrent Mover starting @ `date +%H:%M:%S`.&quot;</span>
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;executing script to pause torrents and run mover.&quot;</span>
<span class="w"> </span>python3<span class="w"> </span>/mnt/user/data/scripts/mover.py
<span class="w"> </span>python3<span class="w"> </span>/mnt/user/data/scripts/mover.py<span class="w"> </span>--host<span class="w"> </span><span class="s2">&quot;localhost:8080&quot;</span><span class="w"> </span>--user<span class="w"> </span><span class="s2">&quot;your_user&quot;</span><span class="w"> </span>--password<span class="w"> </span><span class="s2">&quot;your_password&quot;</span><span class="w"> </span>--days_from<span class="w"> </span><span class="m">0</span><span class="w"> </span>--days_to<span class="w"> </span><span class="m">2</span>
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;qbittorrent-mover completed and resumed all paused torrents.&quot;</span>
<span class="w"> </span>/usr/local/emhttp/plugins/dynamix/scripts/notify<span class="w"> </span>-s<span class="w"> </span><span class="s2">&quot;qBittorrent Mover&quot;</span><span class="w"> </span>-d<span class="w"> </span><span class="s2">&quot;qBittorrent Mover completed @ `date +%H:%M:%S`.&quot;</span>
</code></pre></div>
</div>
<div class="tabbed-block">
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="c1">#!/bin/bash</span>
<span class="w"> </span>/usr/local/emhttp/plugins/dynamix/scripts/notify<span class="w"> </span>-s<span class="w"> </span><span class="s2">&quot;qBittorrent Mover&quot;</span><span class="w"> </span>-d<span class="w"> </span><span class="s2">&quot;qBittorrent Mover starting @ `date +%H:%M:%S`.&quot;</span>
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;executing script to pause torrents and run mover.&quot;</span>
<span class="w"> </span>/mnt/user/data/scripts/.venv/bin/python3<span class="w"> </span>/mnt/user/data/scripts/mover.py
<span class="w"> </span>/mnt/user/data/scripts/.venv/bin/python3<span class="w"> </span>/mnt/user/data/scripts/mover.py<span class="w"> </span>--host<span class="w"> </span><span class="s2">&quot;localhost:8080&quot;</span><span class="w"> </span>--user<span class="w"> </span><span class="s2">&quot;your_user&quot;</span><span class="w"> </span>--password<span class="w"> </span><span class="s2">&quot;your_password&quot;</span><span class="w"> </span>--days_from<span class="w"> </span><span class="m">0</span><span class="w"> </span>--days_to<span class="w"> </span><span class="m">2</span>
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;qbittorrent-mover completed and resumed all paused torrents.&quot;</span>
<span class="w"> </span>/usr/local/emhttp/plugins/dynamix/scripts/notify<span class="w"> </span>-s<span class="w"> </span><span class="s2">&quot;qBittorrent Mover&quot;</span><span class="w"> </span>-d<span class="w"> </span><span class="s2">&quot;qBittorrent Mover completed @ `date +%H:%M:%S`.&quot;</span>
</code></pre></div>
@ -3735,6 +3713,13 @@ deactivate<span class="w"> </span><span class="c1"># to leave the environment</s
<p class="admonition-title">Info</p>
<p>Replace <code>/mnt/user/data/scripts/</code> in the script with the path you have chosen for the Python script.</p>
</div>
<ul>
<li><code>days_from</code> =&gt; Set Number of Days to stop torrents <strong>from</strong> for the move.</li>
<li><code>days_to</code> =&gt; Set Number of Days to stop torrents <strong>to</strong> for the move.</li>
<li><code>host</code> =&gt; The URL you use to access qBittorrent locally.</li>
<li><code>user</code> =&gt; Your used qBittorrent <code>User Name</code> if you have authentication enabled.</li>
<li><code>password</code> =&gt; Your used qBittorrent <code>Password</code> if you have authentication enabled.</li>
</ul>
<p><a class="glightbox" href="../images/Unraid-settings-user-scripts-qbit-mover.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom"><img alt="!Bash script" src="../images/Unraid-settings-user-scripts-qbit-mover.png" /></a></p>
<p>Click the schedule dropdown to choose when the script should run. We want to select <code>Custom</code>.</p>
<p><a class="glightbox" href="../images/Unraid-settings-user-scripts-qbit-mover-schedule.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom"><img alt="!Set Run Time" src="../images/Unraid-settings-user-scripts-qbit-mover-schedule.png" /></a></p>
@ -3772,7 +3757,7 @@ deactivate<span class="w"> </span><span class="c1"># to leave the environment</s
<span class="md-icon" title="Last update">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-datetime">November 21, 2023 23:11:17</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-datetime">February 4, 2024 20:41:53</span>
</span>

File diff suppressed because one or more lines are too long

Binary file not shown.
Loading…
Cancel
Save