%_multiartist% in compilations adds the artist name in the file name, for example:
in single artist album $if(%_multiartist%,%artist% - ,) generates only track title without artist name:
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:
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:
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.