Path config for custom field + albumtype #5245
Answered
by
DjSlash
BigBoyBarney
asked this question in
Q&A
-
Hey guys! I'm trying to sort all songs with the custom field paths:
category:nikke: Nikke OST/$albumartist/$album%aunique{}/$track $title However, this pools Singles with them as well. paths:
albumtype:single: $albumartist/Singles/$album%aunique{}/$track $title to sort singles into a My question would be, how would I achieve this with the Category tag? paths:
category:nikke: Nikke OST/$albumartist/%if{$albumtype=single,Singles/}$album%aunique{}/$track $title Thanks in advance!! |
Beta Was this translation helpful? Give feedback.
Answered by
DjSlash
Jun 6, 2024
Replies: 1 comment 1 reply
-
use the album_fields:
isSingle: 0 if albumtype != single else 1
paths:
category:nikke: Nikke OST/$albumartist/%if{$isSingle,Singles/}$album%aunique{}/$track $title |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BigBoyBarney
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
%if
checks if the condition is nonempty or nonzero if the condition is a number.use the
inline
plugin: