Multiple attributes paths (i.e Bad:1 and singleton) #5497
-
Hi, I am trying to use the flexible attributes feature to create a separate folder for songs I dislike, but still want to keep. The use of
will correctly move songs containing However, I wish to keep the same structure of "bad" Is there anyway of specifying multiple attributes for a path? I tried What I am currently doing is using separate flexible attributes like Thank you for your help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, it is possible to do so using inline plugin and template functions. Try the following configuration ...
plugins:
...
inline
...
item_fields:
# use 'globals().get' to default to '0' for items which do not have 'bad' set
is_bad: return globals().get("bad", "0") == "1"
paths:
# use '%if{cond,then,else}' path function with the variable above
# to conditionally set the path. You can leave 'else' empty in this case
singleton: "%if{$is_bad,Bad/}Non-Album/$artist/$title"
compilation: "%if{$is_bad,Bad/}Compilations/$artist/$title"
...
...
|
Beta Was this translation helpful? Give feedback.
-
This worked very well, thank you for your guidance @snejus ! |
Beta Was this translation helpful? Give feedback.
Yes, it is possible to do so using inline plugin and template functions. Try the following configuration
inline
plugin allows you to define custom variables underitem_fields
configurationis_bad
which checks …