Add support for configs

This commit is contained in:
Ben Sarmiento
2023-10-18 21:09:25 +02:00
parent f9b5b1efac
commit 4650213218
19 changed files with 359 additions and 48 deletions

35
config.yml.example Normal file
View File

@@ -0,0 +1,35 @@
zurg: v1
directories:
torrents:
or:
- regex: /.*/ # you can specify multiple conditions and it works as an OR
- contains: season # use 'contains' for string, case insensitive
- contains_strict: season # case sensitive
- and:
- not_contains: xxx
- not_contains_strict: trailer
shows:
or:
- regex: /season/i # you can specify multiple regex conditions and it works as an OR
- regex: /Season/i
- regex: /Saison/i
"4k content":
regex: /\b4k\b/i
"dolby vision":
and:
regex: /\bdovi\b/i
contains: 4k
kids:
or:
- id: XFPQ5UCMUVAEG # you can specify the torrent ID as well
- id: VDRPYNRPQHEXC
- id: YELNX3XR5XJQM
default:
regex: /.*/ # if duplicates=false, best practice to add a catch-all bucket
duplicates: true
# if true, it means as long as a torrent satisfies the conditions set, then it will appear on that directory
# if false, it follows the order of directories and only appears once in one of them (or none so be careful)
# it processes each movie to see if it meets DIR1 conditions
# if not, it checks for DIR2 conditions, and so on...