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: "by folder structure" with different sort order (Read 9618 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Album list: "by folder structure" with different sort order

Reply #25
I've resolved my issue with the if statement and strstr functions. If anyone's interested this is how I did it:
$if($strstr(%path%,'H:\Music\---'),'---'|%artist%|%date% - %album%|%tracknumber%'.' %title%)$if($strstr(%path%,'Various Artists'),'Various Artists'|%album%|%tracknumber%'.' %title%)%artist%|%date% - %album%|%tracknumber%'.' %title%

Not knowing about the $strstr() function was the killer.

 

Album list: "by folder structure" with different sort order

Reply #26
Interesting. I've recently dabbled with changing my library view, but unsuccessfully. I think the answer is in here; I'll have to mess around later when I have more time. Thanks for the info, at any rate.

I'd like to have a 2nd root folder in my library view, but have the 2 separated, tree-wise. Would the above string accomplish this? Here's a visual aid:

What I have now:



What I'd like:



(Note the Flac Music would expand the tree in the same manner as MP3 Music, on its own as well)

Current code I'm using to achieve the first image (& how I'd like each root folder to look, in the second image):

$swapprefix(%album artist%,The)|'['%date%']' - %album%|$if(%discnumber%,%discnumber%-,)$num(%track%,2) - %title%


Anyways, just wondering is it's possible (I tried before & failed, but I'm a noob with this kind of thing) & I'll muck around more later.
Keep up the good work - it's appreciated.  :]
The same except different.