You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as i could see in the code, that part is static so we cannot
yet (checked doc, code and issues). The formatting uses a dict with
special keywords [1].
Hello,
First, thanks for tvnamer, quite a time saver!
Regarding moving file configuration, this would be great to allow more
flexibility in the path setup (
move_files_destination
option).For example, today we can define:
I'd like to be able to set a more specific path still based on those
options, for example, splitting on the first letter of the tvshow:
As far as i could see in the code, that part is static so we cannot
yet (checked doc, code and issues). The formatting uses a dict with
special keywords [1].
[1]
tvnamer/tvnamer/main.py
Lines 63 to 74 in d4f5262
To test the idea, i patched locally my installation to adapt that dict
accordingly (for all conditionals), for example:
I found this rather limited but it works.
I don't really know how to apply this generically though (maybe some
users would want that on other keys and with more than 1 first
letter).
config:
Relatedly, other tools like flexget [2] uses jinja [3]. That allows
configuration to look like:
(this is verbose but it's declarative enough ;)
Then again that adds a new dependency and possibly new issues for you
later down the line.
[2] https://github.com/Flexget/Flexget
[3] http://jinja.pocoo.org/
Cheers,
The text was updated successfully, but these errors were encountered: