qbit_manage/config/config.yml.sample

269 lines
11 KiB
Plaintext
Raw Normal View History

# This is an example configuration file that documents all the options.
# It will need to be modified for your specific use case.
# Please refer to the link below for more details on how to set up the configuration file
# https://github.com/StuffAnThings/qbit_manage/wiki/Config-Setup
2022-08-22 02:40:57 +08:00
commands:
# The commands defined below will IGNORE any commands used in command line and docker env variables.
dry_run: True
cross_seed: False
recheck: False
cat_update: False
tag_update: False
rem_unregistered: False
tag_tracker_error: False
rem_orphaned: False
tag_nohardlinks: False
share_limits: False
skip_qb_version_check: False
skip_cleanup: False
2022-08-22 02:40:57 +08:00
2021-02-20 13:04:02 +08:00
qbt:
2022-08-14 04:49:02 +08:00
# qBittorrent parameters
2021-11-09 11:31:47 +08:00
host: "localhost:8080"
user: "username"
pass: "password"
2021-12-27 06:19:17 +08:00
settings:
2023-05-31 09:39:49 +08:00
force_auto_tmm: False # Will force qBittorrent to enable Automatic Torrent Management for each torrent.
tracker_error_tag: issue # Will set the tag of any torrents that do not have a working tracker.
2023-04-01 23:25:01 +08:00
nohardlinks_tag: noHL # Will set the tag of any torrents with no hardlinks.
share_limits_suffix_tag: share_limit # Will add this suffix to the grouping separated by '.' to the tag of any torrents with share limits.
2023-03-14 09:53:04 +08:00
ignoreTags_OnUpdate: # When running tag-update function, it will update torrent tags for a given torrent even if the torrent has at least one or more of the tags defined here. Otherwise torrents will not be tagged if tags exist.
- noHL
- issue
- cross-seed
directory:
# Do not remove these
# Cross-seed var: </your/path/here/> # Output directory of cross-seed
# root_dir var: </your/path/here/> # Root downloads directory used to check for orphaned files, noHL, and RecycleBin.
# <OPTIONAL> remote_dir var: </your/path/here/> # Path of docker host mapping of root_dir.
# Must be set if you're running qbit_manage locally and qBittorrent/cross_seed is in a docker
# <OPTIONAL> recycle_bin var: </your/path/here/> # Path of the RecycleBin folder. Default location is set to remote_dir/.RecycleBin
# <OPTIONAL> torrents_dir var: </your/path/here/> # Path of the your qbittorrent torrents directory. Required for `save_torrents` attribute in recyclebin
2021-11-09 11:31:47 +08:00
cross_seed: "/your/path/here/"
root_dir: "/data/torrents/"
remote_dir: "/mnt/user/data/torrents/"
2021-12-31 08:21:41 +08:00
recycle_bin: "/mnt/user/data/torrents/.RecycleBin"
torrents_dir: "/qbittorrent/data/BT_backup"
2022-09-25 04:11:55 +08:00
orphaned_dir: "/data/torrents/orphaned_data"
2021-02-20 13:04:02 +08:00
cat:
2022-08-14 04:49:02 +08:00
# Category & Path Parameters
# <Category Name> : <save_path> # Path of your save directory.
2021-11-09 11:31:47 +08:00
movies: "/data/torrents/Movies"
2021-12-28 22:24:21 +08:00
tv: "/data/torrents/TV"
2021-02-27 19:05:17 +08:00
2022-08-14 04:49:02 +08:00
cat_change:
# This moves all the torrents from one category to another category. This executes on --cat-update
# WARNING: if the paths are different and Default Torrent Management Mode is set to automatic the files could be moved !!!
# <Old Category Name> : <New Category>
Radarr-HD.cross-seed: movies-hd
Radarr-UHD.cross-seed: movies-uhd
movies-hd.cross-seed: movies-hd
movies-uhd.cross-seed: movies-uhd
2021-12-26 21:49:20 +08:00
tracker:
2023-03-14 09:53:04 +08:00
# Mandatory
2022-08-14 04:49:02 +08:00
# Tag Parameters
2021-12-14 23:18:10 +08:00
# <Tracker URL Keyword>: # <MANDATORY> This is the keyword in the tracker url
# <MANDATORY> Set tag name. Can be a list of tags or a single tag
# tag: <Tag Name>
2021-12-20 02:51:52 +08:00
# <OPTIONAL> Set this to the notifiarr react name. This is used to add indexer reactions to the notifications sent by Notifiarr
# notifiarr: <notifiarr indexer>
2021-12-14 23:18:10 +08:00
animebytes.tv:
tag: AnimeBytes
2021-12-20 02:51:52 +08:00
notifiarr: animebytes
avistaz:
tag:
- Avistaz
- tag2
- tag3
2021-12-20 02:51:52 +08:00
notifiarr: avistaz
2021-12-14 23:18:10 +08:00
beyond-hd:
tag: [Beyond-HD, tag2, tag3]
notifiarr: beyondhd
2021-12-14 23:18:10 +08:00
blutopia:
tag: Blutopia
2021-12-20 02:51:52 +08:00
notifiarr: blutopia
2021-12-14 23:18:10 +08:00
cartoonchaos:
tag: CartoonChaos
2021-12-18 03:44:54 +08:00
digitalcore:
tag: DigitalCore
notifiarr: digitalcore
gazellegames:
tag: GGn
hdts:
tag: HDTorrents
2021-12-14 23:18:10 +08:00
landof.tv:
tag: BroadcasTheNet
notifiarr: broadcasthenet
2021-12-14 23:18:10 +08:00
myanonamouse:
tag: MaM
passthepopcorn:
tag: PassThePopcorn
notifiarr: passthepopcorn
2021-12-14 23:18:10 +08:00
privatehd:
tag: PrivateHD
notifiarr:
2021-12-14 23:18:10 +08:00
tleechreload:
tag: TorrentLeech
notifiarr: torrentleech
2021-12-14 23:18:10 +08:00
torrentdb:
tag: TorrentDB
notifiarr: torrentdb
2021-12-14 23:18:10 +08:00
torrentleech:
tag: TorrentLeech
notifiarr: torrentleech
2021-12-14 23:18:10 +08:00
tv-vault:
tag: TV-Vault
2022-12-04 00:07:52 +08:00
# The "other" key is a special keyword and if defined will tag any other trackers that don't match the above trackers into this tag
other:
tag: other
2021-09-25 08:58:56 +08:00
nohardlinks:
# Tag Movies/Series that are not hard linked outside the root directory
2021-09-25 08:58:56 +08:00
# Mandatory to fill out directory parameter above to use this function (root_dir/remote_dir)
2021-09-27 04:23:50 +08:00
# This variable should be set to your category name of your completed movies/completed series in qbit. Acceptable variable can be any category you would like to tag if there are no hardlinks found
movies-completed:
2023-03-31 03:25:24 +08:00
# <OPTIONAL> exclude_tags var: Will exclude torrents with any of the following tags when searching through the category.
exclude_tags:
- Beyond-HD
- AnimeBytes
2021-11-09 11:42:25 +08:00
- MaM
# Can have additional categories set with separate ratio/seeding times defined.
2021-11-09 11:31:47 +08:00
series-completed:
2023-03-31 03:25:24 +08:00
# <OPTIONAL> exclude_tags var: Will exclude torrents with any of the following tags when searching through the category.
exclude_tags:
- Beyond-HD
- BroadcasTheNet
share_limits:
2023-05-31 09:39:49 +08:00
# Control how torrent share limits are set depending on the priority of your grouping
# This variable is mandatory and is a text defining the name of your grouping. This can be any string you want
noHL:
# <MANDATORY> priority: <int/float> # This is the priority of your grouping. The lower the number the higher the priority
priority: 1
# <OPTIONAL> tags: <list> # Filter the group based on one or more tags. Multiple tags are checked with an AND condition
tags:
2023-05-31 09:39:49 +08:00
- noHL
# <OPTIONAL> exclude_tags: <list> # Filter by excluding one or more tags. Multiple exclude_tags are checked with an AND condition
# This is useful to combine with the category filter to exclude one or more tags from an entire category
exclude_tags:
2023-05-31 09:39:49 +08:00
- Beyond-HD
# <OPTIONAL> categories: <list> # Filter by excluding one or more categories. Multiple exclude_tags are checked with an OR condition
# Since one torrent can only be associated with a single category, multiple categories are checked with an OR condition
categories:
2023-05-31 09:39:49 +08:00
- RadarrComplete
- SonarrComplete
# <OPTIONAL> max_ratio <float>: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading.
# Delete this key from a category's config to use the tracker's configured max_ratio. Will default to -1 if not specified for the group.
max_ratio: 5.0
# <OPTIONAL> max_seeding_time <int>: Will set the torrent Maximum seeding time (minutes) until torrent is stopped from seeding.
# Delete this key from a category's config to use the tracker's configured max_seeding_time. Will default to -1 if not specified for the group.
max_seeding_time: 129600
# <OPTIONAL> min_seeding_time <int>: Will prevent torrent deletion by cleanup variable if torrent has not yet minimum seeding time (minutes).
# Delete this key from a category's config to use the tracker's configured min_seeding_time. Will default to 0 if not specified for the group.
min_seeding_time: 43200
# <OPTIONAL> Limit Upload Speed <int>: Will limit the upload speed KiB/s (KiloBytes/second) (`-1` : No Limit)
limit_upload_speed: 0
# <OPTIONAL> cleanup <bool>: WARNING!! Setting this as true Will remove and delete contents of any torrents that satisfies the share limits
cleanup: false
# <OPTIONAL> resume_torrent_after_change <bool>: This variable will resume your torrent after changing share limits. Default is true
resume_torrent_after_change: true
# <OPTIONAL> add_group_to_tag <bool>: This adds your grouping as a tag with a suffix defined in settings . Default is true
# Example: A grouping defined as noHL will have a tag set to noHL.share_limit (if using the default suffix)
add_group_to_tag: true
cross-seed:
priority: 2
tags: cross-seed
max_seeding_time: 10200
cleanup: false
PTP:
priority: 3
tags:
2023-05-31 09:39:49 +08:00
- PassThePopcorn
max_ratio: 2.0
max_seeding_time: 130000
cleanup: false
default:
priority: 999
max_ratio: -1
max_seeding_time: -1
cleanup: false
2021-11-20 10:11:13 +08:00
recyclebin:
2022-08-14 04:49:02 +08:00
# Recycle Bin method of deletion will move files into the recycle bin (Located in /root_dir/.RecycleBin) instead of directly deleting them in qbit
# By default the Recycle Bin will be emptied on every run of the qbit_manage script if empty_after_x_days is defined.
2021-11-20 10:11:13 +08:00
enabled: true
2022-10-29 23:19:09 +08:00
# <OPTIONAL> empty_after_x_days var:
# Will automatically remove all files and folders in recycle bin after x days. (Checks every script run)
# If this variable is not defined it, the RecycleBin will never be emptied.
# WARNING: Setting this variable to 0 will delete all files immediately upon script run!
empty_after_x_days: 60
# <OPTIONAL> save_torrents var:
# If this option is set to true you MUST fill out the torrents_dir in the directory attribute.
# This will save a copy of your .torrent and .fastresume file in the recycle bin before deleting it from qbittorrent
save_torrents: true
2022-01-03 06:06:51 +08:00
# <OPTIONAL> split_by_category var:
2022-10-29 23:19:09 +08:00
# This will split the recycle bin folder by the save path defined in the `cat` attribute
2022-01-03 06:06:51 +08:00
# and add the base folder name of the recycle bin that was defined in the `recycle_bin` sub-attribute under directory.
split_by_category: false
orphaned:
2022-08-14 04:49:02 +08:00
# Orphaned files are those in the root_dir download directory that are not referenced by any active torrents.
# Will automatically remove all files and folders in orphaned data after x days. (Checks every script run)
# If this variable is not defined it, the orphaned data will never be emptied.
# WARNING: Setting this variable to 0 will delete all files immediately upon script run!
empty_after_x_days: 60
# File patterns that will not be considered orphaned files. Handy for generated files that aren't part of the torrent but belong with the torrent's files
exclude_patterns:
- "**/.DS_Store"
- "**/Thumbs.db"
- "**/@eaDir"
- "/data/torrents/temp/**"
- "**/*.!qB"
2023-05-31 09:39:49 +08:00
- "**/_unpackerred"
2021-12-19 01:38:41 +08:00
apprise:
2022-08-14 04:49:02 +08:00
# Apprise integration with webhooks
# Leave Empty/Blank to disable
# Mandatory to fill out the url of your apprise API endpoint
2021-12-19 01:38:41 +08:00
api_url: http://apprise-api:8000
# Mandatory to fill out the notification url/urls based on the notification services provided by apprise. https://github.com/caronc/apprise/wiki
2021-12-19 01:38:41 +08:00
notify_url:
notifiarr:
2022-08-14 04:49:02 +08:00
# Notifiarr integration with webhooks
# Leave Empty/Blank to disable
# Mandatory to fill out API Key
apikey: ####################################
2021-12-23 03:29:13 +08:00
# <OPTIONAL> Set to a unique value (could be your username on notifiarr for example)
2021-12-18 09:21:27 +08:00
instance:
webhooks:
2022-08-14 04:49:02 +08:00
# Webhook notifications:
# Possible values:
# Set value to notifiarr if using notifiarr integration
# Set value to apprise if using apprise integration
# Set value to a valid webhook URL
2023-03-14 09:53:04 +08:00
# Set value to nothing (leave Empty/Blank) to disable
2021-12-19 05:55:38 +08:00
error: https://mywebhookurl.com/qbt_manage
run_start: notifiarr
2021-12-19 05:55:38 +08:00
run_end: apprise
function:
2021-12-20 02:51:52 +08:00
cross_seed: https://mywebhookurl.com/qbt_manage
recheck: notifiarr
cat_update: apprise
tag_update: notifiarr
rem_unregistered: notifiarr
tag_tracker_error: notifiarr
2021-12-20 02:51:52 +08:00
rem_orphaned: notifiarr
tag_nohardlinks: notifiarr
cleanup_dirs: notifiarr
bhd:
2022-08-14 04:49:02 +08:00
# BHD Integration used for checking unregistered torrents
2022-10-29 23:19:09 +08:00
apikey: