qbittorrent
> updates
This commit is contained in:
		| @@ -16,23 +16,25 @@ A script that will auto assign a category of an incoming torrent. | ||||
|   <summary><strong>assign_category.py</strong> notes</summary> | ||||
|  </br> | ||||
|  | ||||
| This python script will get called every time a torrent file is added to the qbittorrent application. | ||||
|  | ||||
| This script is dependent on the `qbittorrent-api` module that will <a href="https://docs.linuxserver.io/images/docker-qbittorrent" target="blank">get installed</a> on start of the main `qbittorrent` container. | ||||
| This python script will get called every time a torrent file is added to the qbittorrent application.Is is dependent on the `qbittorrent-api` module that will <a href="https://wiki.euronvault.com/qbittorrent/#custom-scripts" target="blank">get installed</a> on start of the main `qbittorrent` container. | ||||
|  | ||||
| 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. | ||||
| 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. | ||||
| 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`.</br> If both or either are **FALSE** then the script will move to #3. | ||||
| - > Note: When you **right click** on a **category** in qbittorrent you can edit the **save path** location. | ||||
| - If both **#1** and **#2** are **TRUE**, then the category for that added torrent will change to `category_1080_shows`. | ||||
|  | ||||
| 3. Next the script will again check for "1080p" or "2160p" AND "YTS.MX" in the name.  | ||||
| - If both or either are **FALSE** then the script will move to **#3**. | ||||
|  | ||||
| > Note: When you **right click** on a **category** in qbittorrent you can edit the **save path** location. | ||||
|  | ||||
| 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`. | ||||
| - > Note: **95%** of the time I only add movies from **YTS.MX**. This can be changed to any movie identifier needed. | ||||
|  | ||||
| > Note: **95%** of the time I only add movies from **YTS.MX**. This can be changed to any movie identifier needed. | ||||
|  | ||||
| </details>   | ||||
|     <br /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user