qbit_manage/config/config.yml.sample

252 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
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:
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-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-14 23:18:10 +08:00
# <OPTIONAL> Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading. -2 means the global limit should be used, -1 means no limit.
# max_ratio: 5.0
# <OPTIONAL> Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding. -2 means the global limit should be used, -1 means no limit.
# max_seeding_time: 129600
# <OPTIONAL> Will ensure that noHL torrents from this tracker are not deleted by cleanup variable if torrent has not yet met the minimum seeding time (min).
2022-10-29 23:19:09 +08:00
# min_seeding_time: 2000
# <OPTIONAL> Will limit the upload speed KiB/s (KiloBytes/second) (-1 means no limit)
# limit_upload_speed: 150
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
max_ratio: 5.0
max_seeding_time: 129600
min_seeding_time: 30400
limit_upload_speed: 150
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
max_ratio: 5.0
notifiarr: digitalcore
gazellegames:
tag: GGn
limit_upload_speed: 150
hdts:
tag: HDTorrents
max_seeding_time: 129600
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:
2022-08-14 04:49:02 +08:00
# Tag Movies/Series that are not hard linked
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
# <OPTIONAL> cleanup var: WARNING!! Setting this as true Will remove and delete contents of any torrents that have a noHL tag and meets share limits
2021-09-27 04:23:50 +08:00
cleanup: false
2021-12-23 03:29:13 +08:00
# <OPTIONAL> max_ratio var: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading
2021-09-27 04:23:50 +08:00
max_ratio: 4.0
2022-02-27 05:19:55 +08:00
# <OPTIONAL> max seeding time var: Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding
2021-09-27 04:23:50 +08:00
max_seeding_time: 86400
2022-02-27 05:19:55 +08:00
# <OPTIONAL> Limit Upload Speed var: Will limit the upload speed KiB/s (KiloBytes/second) (`-1` : No Limit)
limit_upload_speed:
2022-10-29 23:19:09 +08:00
# <OPTIONAL> min seeding time var: Will prevent torrent deletion by cleanup variable if torrent has not yet minimum seeding time (min).
# 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 category or tracker.
2022-02-27 05:19:55 +08:00
min_seeding_time: 43200
# <OPTIONAL> resume_torrent_after_untagging_noHL var: If a torrent was previously tagged as NoHL and now has hardlinks, this variable will resume your torrent after changing share limits
resume_torrent_after_untagging_noHL: false
# 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
# <OPTIONAL> cleanup var: WARNING!! Setting this as true Will remove and delete contents of any torrents that have a noHL tag and meets share limits
2021-09-25 08:58:56 +08:00
cleanup: false
2021-12-23 03:29:13 +08:00
# <OPTIONAL> max_ratio var: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading
2021-09-25 08:58:56 +08:00
max_ratio: 4.0
2022-02-27 05:19:55 +08:00
# <OPTIONAL> max seeding time var: Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding
2021-11-09 11:31:47 +08:00
max_seeding_time: 86400
2022-02-27 05:19:55 +08:00
# <OPTIONAL> Limit Upload Speed var: Will limit the upload speed KiB/s (KiloBytes/second) (`-1` : No Limit)
limit_upload_speed:
2022-10-29 23:19:09 +08:00
# <OPTIONAL> min seeding time var: Will prevent torrent deletion by cleanup variable if torrent has not yet minimum seeding time (min).
# min_seeding_time: # Not specified for this category; tracker's value will be used. Will default to 0 if not specified for the category or tracker.
# <OPTIONAL> resume_torrent_after_untagging_noHL var: If a torrent was previously tagged as NoHL and now has hardlinks, this variable will resume your torrent after changing share limits
resume_torrent_after_untagging_noHL: 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-03-14 09:53:04 +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: