-
-
Notifications
You must be signed in to change notification settings - Fork 995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to use conditional filenames? #1394
Comments
Conditional filenames are now possible with 4cf4043. Not sure if this is the best or a good way of doing it, but for now you set the default filename like before with the "sitename": {
"filename": "default filename",
"filename-conditions": {
"extension == 'mp4'": "video filename",
"len(title) < 16" : "some other filename"
}
} I've also considered combining the two into just the regular "sitename": {
"filename": {
"extension == 'mp4'": "video filename",
"len(title) < 16" : "some other filename",
"": "default filename"
}
} Let me know if this is OK like this or how I should change things. |
Update: I changed it to the second example from #1394 (comment), i.e. |
They work the same way as conditional filenames (84d2e64), e.g. "directory": { "score >= 20": ["high score"], "score >= 5" : ["mid score"], "" : ["{category}", "default"] }
I would like to use different file name patterns, depending on given conditions. It is possible? Or will it be someday?
The text was updated successfully, but these errors were encountered: