mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 14:52:17 +00:00
Now uses seperate config file to read regex and options.
Instead of using a defined python file with the regex details, it now brings in and parses a config file using ConfigParser. This allows for some flexability in regards to modifying regexs.
This commit is contained in:
12
tvorganise.cfg
Normal file
12
tvorganise.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
[main]
|
||||
|
||||
# Target directory
|
||||
target_path: /mnt/vault/video/TV Shows/%(file_showname)s/Season %(seasno)s/
|
||||
|
||||
[regex]
|
||||
valid_in_names: [\w\(\).,\[\]'\ \-?!#:]
|
||||
regex1: "^(%(valid_in_names)s+) - \[(\d{2})x(\d{2})\] - (%(valid_in_names)s+)$"
|
||||
regex2: "^(%(valid_in_names)s+) - \[(\d{2})x(\d{2}-\d{2})\] - (%(valid_in_names)s+)$"
|
||||
regex3: "^(%(valid_in_names)s+) - \[(\d{2})x(Special\d{1,2})\] - (%(valid_in_names)s+)$"
|
||||
regex4: "^(%(valid_in_names)s+) - \[(\d{2})xExtra(\d{1,2})\] - (%(valid_in_names)s+)$"
|
||||
regex5: "^(%(valid_in_names)s+) - \[(\d{2})] - (%(valid_in_names)s+)$"
|
||||
Reference in New Issue
Block a user