Question about %_multiartist%

Hello

Maybe you’ll be able to help me with one thing. I’m using the following code. The case concerns %_multiartist%.

$num(%tracknumber%,2)). $if(%_multiartist%,%artist% - ,)$truncate(%title%,70)

%_multiartist% in compilations adds the artist name in the file name, for example:
obraz

in single artist album $if(%_multiartist%,%artist% - ,) generates only track title without artist name:
obraz

And that’s fine, it’s just as I wanted. But there is problem with single artist albums with featered artist. The script generates file names with the artist:
obraz

Is there any solution so that in this case (single artist album with feat) the artist is not added in the filename?

Not sure here, probably would need a plugin for proper handling. For me to understand: If it is either

  • A single artist
  • or multiple artists, but artists are marked as featuring

then you don’t want to include the artist name in the file name. In all other cases where there are multiple artists for the track you want them in the file name.

It’s a bit tricky, since one needs to exclude artists from the list based on the used join frame. If you are happy to exclude artists always if there is any featuring you could do:

$if($and(%_multiartist%,$not($in(%artist%,feat.))),%artist% - ,)

So this only prints the artist if it is multiartist and artist does not contain “feat.”. However, this would of course also not print the artist if it is e.g. “Artist 1 & Artist 2 (feat. Artist 3)” (two artists + one featuring).

Maybe somebody else has some clever idea. @rdswift has some plugin that helps with artist handling, but I think this does not help in this case.

1 Like

Actually, it might. Try enabling the Additional Artists Variables plugin (instructions here), and then changing your test from:

$if(%_multiartist%,%artist% - ,)

to:

$if($and(%_multiartist%,$or(%compilation%,%_artists_album_additional_id%)),%artist% - ,)

and see if that does what you want.

4 Likes

@outsidecontext

That’s correct. Your solution don’t work.

@rdswift

I know your plugin, i’m using it to create main artist folder (the first one artist). I did not expect it can be used in this situation, but it works!

Thank you guys for helping! Problem solved.

2 Likes

I never thought to use it for something like this either until I saw your question. Glad I could help. Thanks for letting me know.

1 Like