<p><code>deluge-mover.py</code> needs the requests Python module, so we need to make sure it's installed when your unRAID server starts, or when the Array is started the first time.</p>
<p>You can choose one of the following 3 options to install <code>requests</code>.</p>
<p>With this option, we're going to install the <code>requests</code> module when the Array is started the first time.</p>
<p>In your unRAID Dashboard, go to your <code>Settings</code> tab and select <code>User Scripts</code> in the <code>User Utilities</code> section at the bottom.</p>
<p><aclass="glightbox"href="../images/Unraid-settings-user-scripts-requests-schedule.png"data-type="image"data-width="100%"data-height="auto"data-desc-position="bottom"><imgalt="!Set Run Time"src="../images/Unraid-settings-user-scripts-requests-schedule.png"/></a></p>
<p>Click on <code>Apply</code>.</p>
<p>Finally, you will need to choose <code>RUN IN BACKGROUND</code> or restart your unRAID server to install the <code>requests</code> module.</p>
<p>With this option, we're going to install the <code>requests</code> module 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 text 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>).</p>
<p>With this option, we're going to create a <ahref="https://docs.python.org/3/library/venv.html">Python virtual environment</a> on our disk. We will use this to run and store dependencies (<code>requests</code>) for this specific environment.</p>
<p>By doing this, we will <strong>only need to configure this once</strong> and it will be persistent after reboots <em>(this differs from the previous steps)</em>.</p>
<p>First, you need to choose a location to start a new Python environment.</p>
@ -3574,11 +3509,24 @@ deactivate<span class="w"> </span><span class="c1"># to leave the environment</s
<pclass="admonition-title">Info</p>
<p>Replace <code>/mnt/user/data/scripts/.venv</code> with the path you have chosen.</p>
</div>
</div>
<divclass="tabbed-block">
<p>With this option, we're going to install the <code>requests</code> module 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 text 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>).</p>
<p>Now, using your favorite text 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>) edit the script you downloaded at the beginning of the guide (<ahref="#deluge-mover-script">HERE</a>).</p>
<p>You only need to change a few options at the top of the script.</p>
<divclass="highlight"><pre><span></span><code><spanclass="c1"># this webui will need to be the JSON-RPC endpoint</span>
<li><code>deluge_webui</code> => The URL you use to access Deluge locally. (<em>the</em><code>"</code><em>should remain</em>)</li>
<li><code>deluge_password</code> => Your Deluge WebUI <code>Password</code>. (<em>the</em><code>"</code><em>should remain</em>)</li>
<li><code>check_fs</code> => If set to <code>True</code>, it will check for the file on the cache drive before pausing.</li>
<li><code>cache_download_path</code> => The location (host path) for your cache folder (if check_fs is True)</li>
<li><code>age_day_min</code> => Set the minimum age (days) of the torrents that you wish to move.</li>
<li><code>age_day_max</code> => Set the maximum age (days) of the torrents that you wish to move.</li>
</ul>
<li>
<p><code>use_mover_old</code> => See below.</p>
<divclass="admonition warning">
<p>Depending on whether you use the unRAID <code>Mover Tuning</code> app, you may need to change <strong>line 164</strong>:</p>
<ul>
<li>If you do not use <code>Mover Tuning</code>, you <strong>DO NOT</strong> have to make any changes.</li>
<li>If you use <code>Mover Tuning</code> but <strong>don't</strong> want to use it for the script, change <strong>line 164</strong> from <code>system('/usr/local/sbin/mover start')</code> to <code>system('/usr/local/sbin/mover.old start')</code></li>
<li>If you use <code>Mover Tuning</code> but <strong>DON'T</strong> want to use it for the script, change this to <code>True</code></li>
<li>If you use <code>Mover Tuning</code> and <strong>DO</strong> want to use it for the script, you will not have to make any changes. However, for this option, inside the <code>Mover Tuner</code> you will need to set <code>Move Now button follows plugin filters</code> to <code>Yes</code> and <code>Disable Mover running on a schedule</code> to <code>No</code>.</li>
</ul>
</div>
</li>
<li>
<p><code>cache_download_path</code> => The location (host path) for your cache folder (if check_fs is True)</p>
</li>
<li><code>age_day_min</code> => Set the minimum age (days) of the torrents that you wish to move.</li>
<li><code>age_day_max</code> => Set the maximum age (days) of the torrents that you wish to move.</li>
</ul>
<h4id="copy-the-script-to-your-preferred-location">Copy the script to your preferred location<aclass="headerlink"href="#copy-the-script-to-your-preferred-location"title="Permanent link"></a></h4>
<p>Place the script you just edited somewhere easy to access/remember.</p>
<p>Suggestions:</p>
@ -3632,7 +3599,7 @@ deactivate<span class="w"> </span><span class="c1"># to leave the environment</s
<p>Click on the cogwheel of the new script in the list.</p>
<p><aclass="glightbox"href="../images/Unraid-settings-user-scripts-edit-deluge-mover.png"data-type="image"data-width="100%"data-height="auto"data-desc-position="bottom"><imgalt="!Select user script"src="../images/Unraid-settings-user-scripts-edit-deluge-mover.png"/></a></p>
<p>Copy/Paste the following in the new window that opens, then click <code>SAVE CHANGES</code>.</p>