Adjust default schedule

Jon 2021-12-23 10:48:10 -05:00
parent 1f748bac83
commit 5517ecba2d
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671
2 changed files with 45 additions and 35 deletions

@ -1,7 +1,7 @@
| Shell Command |Docker Environment Variable |Description | Default Value | | Shell Command |Docker Environment Variable |Description | Default Value |
| :------------ | :------------ | :------------ | :------------ | | :------------ | :------------ | :------------ | :------------ |
| `-r` or`--run` | QBT_RUN |Run without the scheduler. Script will exit after completion. | False | | `-r` or`--run` | QBT_RUN |Run without the scheduler. Script will exit after completion. | False |
| `-sch` or `--schedule` | QBT_SCHEDULE | Schedule to run every x minutes. (Default set to 30) | 30 | | `-sch` or `--schedule` | QBT_SCHEDULE | Schedule to run every x minutes. (Default set to 1440 (1 day)) | 1440 |
| `-c CONFIG` or `--config-file CONFIG` | QBT_CONFIG | This is used if you want to use a different name for your config.yml. `Example: tv.yml` | config.yml | | `-c CONFIG` or `--config-file CONFIG` | QBT_CONFIG | This is used if you want to use a different name for your config.yml. `Example: tv.yml` | config.yml |
| `-lf LOGFILE,` or `--log-file LOGFILE,` | QBT_LOGFILE | This is used if you want to use a different name for your log file. `Example: tv.log` | activity.log | | `-lf LOGFILE,` or `--log-file LOGFILE,` | QBT_LOGFILE | This is used if you want to use a different name for your log file. `Example: tv.log` | activity.log |
| `-cs` or `--cross-seed` | QBT_CROSS_SEED | Use this after running [cross-seed script](https://github.com/mmgoodnow/cross-seed) to add torrents from the cross-seed output folder to qBittorrent | False | | `-cs` or `--cross-seed` | QBT_CROSS_SEED | Use this after running [cross-seed script](https://github.com/mmgoodnow/cross-seed) to add torrents from the cross-seed output folder to qBittorrent | False |

@ -13,6 +13,9 @@ A template Configuration File can be found in the repo [config/config.yml.sample
**Sample** **Sample**
```yaml ```yaml
# This is an example configuration file that documents all the options.
# It will need to be modified for your specific use case.
# qBittorrent parameters # qBittorrent parameters
qbt: qbt:
host: "localhost:8080" host: "localhost:8080"
@ -21,17 +24,17 @@ qbt:
directory: directory:
# Do not remove these # Do not remove these
# Cross-seed var: </your/path/here/> #Output directory of cross-seed # 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. # 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. # <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 # Must be set if you're running qbit_manage locally and qBittorrent/cross_seed is in a docker
cross_seed: "/your/path/here/" cross_seed: "/your/path/here/"
root_dir: "/data/torrents/" root_dir: "/data/torrents/"
remote_dir: "/mnt/user/data/torrents/" remote_dir: "/mnt/user/data/torrents/"
# Category/Pathing Parameters # Category & Path Parameters
cat: cat:
# <Category Name> : <save_path> #Path of your save directory. Can be a keyword or full path # <Category Name> : <save_path> # Path of your save directory. Can be a keyword or full path
movies: "/data/torrents/Movies" movies: "/data/torrents/Movies"
tv: "TV" tv: "TV"
@ -68,6 +71,7 @@ tags:
digitalcore: digitalcore:
tag: DigitalCore tag: DigitalCore
max_ratio: 5.0 max_ratio: 5.0
notifiarr: digitalcore
gazellegames: gazellegames:
tag: GGn tag: GGn
limit_upload_speed: 150 limit_upload_speed: 150
@ -87,74 +91,79 @@ tags:
notifiarr: notifiarr:
tleechreload: tleechreload:
tag: TorrentLeech tag: TorrentLeech
notifiarr: torrentleech
torrentdb: torrentdb:
tag: TorrentDB tag: TorrentDB
notifiarr: torrentdb
torrentleech: torrentleech:
tag: TorrentLeech tag: TorrentLeech
notifiarr: torrentleech
tv-vault: tv-vault:
tag: TV-Vault tag: TV-Vault
# Tag Movies/Series that are not hard linked
#Tag Movies/Series that are not hard linked
nohardlinks: nohardlinks:
# Mandatory to fill out directory parameter above to use this function (root_dir/remote_dir) # Mandatory to fill out directory parameter above to use this function (root_dir/remote_dir)
# 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 # 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: movies-completed:
#<OPTIONAL> exclude_tags var: Will exclude the following tags when searching through the category. # <OPTIONAL> exclude_tags var: Will exclude the following tags when searching through the category.
exclude_tags: exclude_tags:
- Beyond-HD - Beyond-HD
- AnimeBytes - AnimeBytes
- MaM - MaM
#<OPTIONAL> cleanup var: WARNING!! Setting this as true Will remove and delete contents of any torrents that are in paused state and has the NoHL tag # <OPTIONAL> cleanup var: WARNING!! Setting this as true Will remove and delete contents of any torrents that are in paused state and has the NoHL tag
cleanup: false cleanup: false
#<OPTIONAL> max_ratio var: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading # <OPTIONAL> max_ratio var: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading
max_ratio: 4.0 max_ratio: 4.0
#<OPTIONAL> seeding time var: Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding # <OPTIONAL> seeding time var: Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding
max_seeding_time: 86400 max_seeding_time: 86400
#Can have additional categories set with separate ratio/seeding times defined. # Can have additional categories set with separate ratio/seeding times defined.
series-completed: series-completed:
#<OPTIONAL> exclude_tags var: Will exclude the following tags when searching through the category. # <OPTIONAL> exclude_tags var: Will exclude the following tags when searching through the category.
exclude_tags: exclude_tags:
- Beyond-HD - Beyond-HD
- BroadcasTheNet - BroadcasTheNet
#<OPTIONAL> cleanup var: WARNING!! Setting this as true Will remove and delete contents of any torrents that are in paused state and has the NoHL tag # <OPTIONAL> cleanup var: WARNING!! Setting this as true Will remove and delete contents of any torrents that are in paused state and has the NoHL tag
cleanup: false cleanup: false
#<OPTIONAL> max_ratio var: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading # <OPTIONAL> max_ratio var: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading
max_ratio: 4.0 max_ratio: 4.0
#<OPTIONAL> seeding time var: Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding # <OPTIONAL> seeding time var: Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding
max_seeding_time: 86400 max_seeding_time: 86400
#Recycle Bin method of deletion will move files into the recycle bin (Located in /root_dir/.RecycleBin) instead of directly deleting them in qbit # 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. # By default the Recycle Bin will be emptied on every run of the qbit_manage script if empty_after_x_days is defined.
recyclebin: recyclebin:
enabled: true enabled: true
#<OPTIONAL> empty_after_x_days var: Will automatically remove all files and folders in recycle bin after x days. (Checks every script run) # <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. # 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! # WARNING: Setting this variable to 0 will delete all files immediately upon script run!
empty_after_x_days: 60 empty_after_x_days: 60
# Orphaned files are those in the root_dir download directory that are not referenced by any active torrents. # Orphaned files are those in the root_dir download directory that are not referenced by any active torrents.
orphaned: orphaned:
# 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 # 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: exclude_patterns:
- "**/.DS_Store" - "**/.DS_Store"
- "**/Thumbs.db" - "**/Thumbs.db"
- "**/@eaDir" - "**/@eaDir"
- "/data/torrents/temp/**" - "/data/torrents/temp/**"
- "**/*.!qB"
#Apprise integration with webhooks # Apprise integration with webhooks
# Leave Empty/Blank to disable
apprise: apprise:
#Mandatory to fill out the url of your apprise API endpoint # Mandatory to fill out the url of your apprise API endpoint
api_url: http://apprise-api:8000 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 # Mandatory to fill out the notification url/urls based on the notification services provided by apprise. https://github.com/caronc/apprise/wiki
notify_url: notify_url:
#Notifiarr integration with webhooks # Notifiarr integration with webhooks
# Leave Empty/Blank to disable
notifiarr: notifiarr:
#Mandatory to fill out API Key # Mandatory to fill out API Key
apikey: #################################### apikey: ####################################
#<OPTIONAL> Set to a unique value (could be your username on notifiarr for example) # <OPTIONAL> Set to a unique value (could be your username on notifiarr for example)
instance: instance:
# Webhook notifications: # Webhook notifications:
@ -162,6 +171,7 @@ notifiarr:
# Set value to notifiarr if using notifiarr integration # Set value to notifiarr if using notifiarr integration
# Set value to apprise if using apprise integration # Set value to apprise if using apprise integration
# Set value to a valid webhook URL # Set value to a valid webhook URL
# Leave Empty/Blank to disable
webhooks: webhooks:
error: https://mywebhookurl.com/qbt_manage error: https://mywebhookurl.com/qbt_manage
run_start: notifiarr run_start: notifiarr