qbittorrenty

> Updates
This commit is contained in:
Eugene Amos 2023-12-05 18:12:29 -08:00
parent e7e687df77
commit 33aa93e4d4
2 changed files with 52 additions and 51 deletions

View File

@ -12,8 +12,8 @@
<br />
<br />
>&nbsp;
> &nbsp;
>
> * [inspector](https://gitea.euronvault.com/euronvault/eScripts/src/branch/main/inspector)
> * Monitor the network health of a container..
> * [ip_checker](https://gitea.euronvault.com/euronvault/eScripts/src/branch/main/ip_checker)
@ -24,8 +24,7 @@
> * Set the category of the added file to a special category based on if the file is 1080p or 2160p AND if the file is a Show.
> * [watchtower](https://gitea.euronvault.com/euronvault/eScripts/src/branch/main/watchtower)
> * Monitor, automate and update Docker container images.
></br>&nbsp;
> </br>&nbsp;
<br />
<br />

View File

@ -12,6 +12,7 @@
# :clipboard: Notes: `assign_category.py`
A script that will auto assign a category of an incoming torrent.
<details>
<summary><strong>assign_category.py</strong> notes</summary>
</br>
@ -23,18 +24,16 @@ When the script is called it will do the following:
1. Check the torrent files name for a season/episode pattern using the format of `SxxExx`. This check is also for uppercase or lowercase "s" & "e" and any number or combination of numbers in the `"xx"` spots.
2. Next the script will check if **"1080p"** or **"2160p"** is in the name.
- If both **#1** and **#2** are **TRUE**, then the category for that added torrent will change to `category_1080_shows`.
- If both or either are **FALSE** then the script will move to **#3**.
></br>**Note:** &nbsp;When you **right click** on a **category** in qbittorrent you can edit the **save path** location.</br>&nbsp;
> </br>**Note:** &nbsp;When you **right click** on a **category** in qbittorrent you can edit the **save path** location.</br>&nbsp;
3. Next the script will again check for **"1080p"** or **"2160p"** *AND* **"YTS.MX"** in the name.
- If **TRUE** then the added torrent is a movie and the category will change to `category_1080_movies`.
></br>**Note:** &nbsp;*95%* of the time I only add movies from **YTS.MX**. This can be changed to any movie identifier needed.</br>&nbsp;
> </br>**Note:** &nbsp;*95%* of the time I only add movies from **YTS.MX**. This can be changed to any movie identifier needed.</br>&nbsp;
</details>
<br />
@ -44,6 +43,7 @@ When the script is called it will do the following:
# :clipboard: Notes: `docker-compose-qbittorrent.yml`
This docker-compose file is traditionally used to create and start a container from the command line. For Portainer we can just copy and paste this script into the web editor field.
<details>
<summary><strong>docker-compose-qbittorrent.yml</strong> notes</summary>
</br>
@ -109,7 +109,7 @@ Key parts to this container are:
I will be using port **8124** as indicated in the code below. The port can be changed, just remember that both port numbers will need to be the same for the `qbittorrent` container to get a network connection.
</br></br>
``` yaml
```yaml
8124:8124/tcp # qbittorrent web port
6881:6881/tcp # qbittorrent tcp connection port
6881:6881/udp # qbittorrent udp connection port
@ -121,7 +121,7 @@ Key parts to this container are:
I am using `Privado` for my VPN connection. You can use any provider that uses OpenVPN connections. For a list of supported providers that this container can use <a href="https://haugene.github.io/docker-transmission-openvpn/supported-providers" target="blank">go here</a>. You can also find the correct name to put in the `OPENVPN_PROVIDER` section on the same part of the website.
</BR></BR>
``` yaml
```yaml
OPENVPN_PROVIDER=<PROVIDER NAME>
OPENVPN_USERNAME=<PROVIDER USERNAME>
OPENVPN_PASSWORD=<PROVIDER PASSWORD>
@ -152,35 +152,37 @@ linuxserver.io uses [**Alpine OS**](https://www.alpinelinux.org/releases) to bui
The first part of the script links to the **edge repo** so we can download and install it.
``` shell
```shell
# Add the "edge" testing repository
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
```
This will check for updates to the Alpine repo
``` shell
```shell
# Update the package list
apk update
```
This will install **Python3** first then install a version of pip3 for Alpine called **py3-pip**
``` shell
```shell
# Install Python and pip
apk add python3 py3-pip
```
The last part of the script will install Alpines version of **qbittorrent-api**
``` shell
```shell
# Install qbittorrent-api
apk add py3-qbittorrent-api
```
></br>**Note:** &nbsp;All `echo` lines will be printed out to the logs and the terminal. This way if for whatever reason the script is not working you can search the logs to troubleshoot the issue.</br>&nbsp;
> </br>**Note:** &nbsp;All `echo` lines will be printed out to the logs and the terminal. This way if for whatever reason the script is not working you can search the logs to troubleshoot the issue.</br>&nbsp;
</details>
<br />
<br />
<br />
<br />
<p align="center">
<h2 align="center">For install instructions see the <a href="https://wiki.euronvault.com/qbittorrent" target="blank">wiki</a>.</h2>
</p>