Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Album List - Bug? (Read 3132 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Album List - Bug?

Hi, I've all my songs tagged correctly and in folders for their albums and whatnot, although it shouldn't make a difference.
My query is this; I have my album list hierarchy sorted as follows:

Code: [Select]
$if(%various%,Various Artists,%artist%)|%album%|$if(%various%,$num(%tracknumber%,2) - %artist% - %title% '['%_length%']',$num(%tracknumber%,2) - %title% '['%_length%']')


This is to have a tree for the artist, expanding into their various albums, then expanding into the tracks for that album.
Also, if the songs have the tag 'various' it sorts them differently. In a tree called "Various Artists" then artist, then song. The problem is, with the various artist cds, it seems to do both the if condition, and the else condition.
For example
If I have a various artist cd with the song "Jib jab - hello" it will show up in Various artists -> jib jab various - > jib jab - hello
but ALSO show up in Jib jab - jib jab's album - hello
Am i doing something wrong here, or is this a bug?

Thanks guys
Kieran

Album List - Bug?

Reply #1
i do the exact same thing with my album list...

try this string:

Code: [Select]
$if($stricmp($left(%_directoryname%,15),Various Artists),Various Artists,$if($stricmp($left(%_directoryname%,3),VA-),Various Artists,$if($stricmp($left(%_directoryname%,3),VA ),Various Artists,Single Artist)))|[$if($stricmp($left(%_directoryname%,15),Various Artists),%album%,$if($stricmp($left(%_directoryname%,3),VA-),%album%,$if($stricmp($left(%_directoryname%,3),VA ),%album%,%artist%)))]|[$if($stricmp($left(%_directoryname%,15),Various Artists),[$num(%tracknumber%,2). %title%],$if($stricmp($left(%_directoryname%,3),VA-),[$num(%tracknumber%,2). %title%],$if($stricmp($left(%_directoryname%,3),VA ),[$num(%tracknumber%,2). %title%],%album%)))]|$if($stricmp($left(%_directoryname%,15),Various Artists),,$if($stricmp($left(%_directoryname%,3),VA-),,$if($stricmp($left(%_directoryname%,3),VA ),,[$num(%tracknumber%,2). %title%])))


you might have to modify it, but basically it can tell if it is a various artists from the directory name (if it starts with "VA-", "VA -",or "Various Artists")

i havent taken the time to add any special tags to my music to tell it that way.

only additional thing i need to add is the name of the artist on the tracks of the various artists cds

Album List - Bug?

Reply #2
Quote
Am i doing something wrong here, or is this a bug?

This is not a bug, the string is split at | before evaluating it, not after. This is to prevent | in tags from messing up your album list.

Album List - Bug?

Reply #3
Darn, that's a bit irritating for formatting it
Would it be possible to make it so that in any string all | characters are converted to - or something before parsing the |s. Then it would be much easier to format. Would probly take slightly longer to evaluate though i guess. Also, maybe even restrict the replacement of |s to tags, so that puts() and gets() may be used and different sized trees can be made? Otherwise every tree has to be as deep as one another.
Perhaps this could be an option somewhere?
Anyway, tell me if I'm just talking crap
Thanks
Kieran