Finish config mapping
This commit is contained in:
@@ -1,35 +1,44 @@
|
||||
# Zurg configuration version
|
||||
zurg: v1
|
||||
|
||||
# List of directory definitions and their filtering rules
|
||||
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
|
||||
|
||||
# Configuration for TV shows
|
||||
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
|
||||
group: media # directories on different groups have duplicates of the same torrent
|
||||
filters:
|
||||
- regex: /season/i # Capture torrent names with the term 'season' in any case
|
||||
- regex: /Saison/i # For non-English namings
|
||||
- regex: /s\d\d/i # Capture common season notations like S01, S02, etc.
|
||||
|
||||
# Configuration for movies
|
||||
movies:
|
||||
group: media # because movies and shows are in the same group, and shows come first before movies, all torrents that doesn't fall into shows will fall into movies
|
||||
filters:
|
||||
- regex: /.*/ # you cannot leave a directory without filters because it will not have any torrents in it
|
||||
|
||||
# Configuration for remuxes
|
||||
remuxes:
|
||||
group: def
|
||||
filters:
|
||||
- contains: remux # Specifically target remuxed content
|
||||
|
||||
# Configuration for Dolby Vision content
|
||||
"dolby vision":
|
||||
and:
|
||||
regex: /\bdovi\b/i
|
||||
contains: 4k
|
||||
group: random
|
||||
filters:
|
||||
- and:
|
||||
- regex: /\bdovi\b/i # Matches abbreviations of 'dolby vision'
|
||||
- contains: 4k # you can be quite greedy here, dolby vision + 4k!
|
||||
|
||||
# Configuration for children's content
|
||||
kids:
|
||||
or:
|
||||
- id: XFPQ5UCMUVAEG # you can specify the torrent ID as well
|
||||
group: kids
|
||||
filters:
|
||||
- or: # you can also group conditions with 'or' which is useful especially inside 'and' conditions
|
||||
- not_contains: xxx # Ensures adult content is excluded
|
||||
- not_contains_strict: trailer # strict vs non-strict is just about case sensitivity; this ensures trailers aren't added
|
||||
- id: XFPQ5UCMUVAEG # Specific inclusion by torrent ID
|
||||
- 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...
|
||||
|
||||
Reference in New Issue
Block a user