Help - Search - Members - Calendar
Full Version: Sorting: VA-albums under non-VA-albums
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Sommerregen
I'm currently using this sort string:

CODE

$if($strcmp($meta(album artist),'Various Artist'),
%album%|%discnumber%|%tracknumber%,
[%artist%][%album%][%discnumber%][%tracknumber%])


It sorts
VA-Albums by: Album/Discnumber/Tracknumber
Non-VA-Albums by: Artist/Album/Discnumber/Tracknumber

Good, works fine.

But it shows me the VA-Albums between the "normal" Albums. What i want is, first all Non-Va-Albums then all VA-Albums.

Suggestions?
golphcart
not a very nice solution but you could put them in a 'zzz' folder

like so...

CODE

$if($strcmp($meta(album artist),'Various Artist'),
ZZZ|%album%|%discnumber%|%tracknumber%,
[%artist%][%album%][%discnumber%][%tracknumber%])
Sommerregen
Not "nice", but it works cool.gif

What exactly doing the "|" ?

Dont find that sign in in any sites i visited.
enjoilax
Try:
CODE

$directory(%_path%)|$if2([$num(%tracknumber%,2). ]$ifgreater
($strstr($directory(%_path%),[%artist%]),0,,[%artist% - ])[%
title%],%_filename%)
Sommerregen
@enjoilax
Thanks, but it dont work for me, also cant comprehend your string. crying.gif

But right now,golphcarts one is good enough for me. (I'm on the beginning using titleformatting)

Ok, new question:
Since i have a mixture of single songs and albums, i want following sorting scheme:
Artist 1
Album 1
Album 2
Single 1
Single 2
Single 3... (Alphabetically)
Artist 2
Album 1...
and so on

Tryed to use my global Variable (isAlbum), but it seems to be ignored in the sorting string.
Ideas?
odyssey
This trick seems to work (modify the output):

CODE
$if($strcmp($meta(album artist),'Various Artist'),zzz%album title%,%album title%)|%year%
kockroach
If you use Playlist Tree then you can use the following:

Format:
CODE
%album artist%|%album%|$num(%tracknumber%,2)


Population order:
CODE
$meta(album artist)|$if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%)|%album%|$num(%tracknumber%,2)


It works for me, and you shouldn't have to move files to a different location.
Sommerregen
Sorry, both suggestions dont work.
Odysseys one producing the same sorting as golphcarts one,
kockroaches one messing up the CD 1,CD 2 - order.

Ok, little picture:
IPB Image


The Single "Vollenweider, Andreas - The trilogy" (represented by the brown line) should be displayed after the Album "Vollenweider, Andreas - White Wind" (despite the alphabetically order).

All what i tried and also yours (thanks again), sorting (in different ways) by albumartist.
But they dont distinguish between Singles and Albums.
At least this is what i understood.

Kockroach also mentioned the moving of files. It's exactly what i dont want.
There should be a way to realize that with the (isAlbum)-Variable. I just dont have an idea how. crying.gif


kockroach
QUOTE(Sommerregen @ Nov 6 2006, 20:54) *

kockroaches one messing up the CD 1,CD 2 - order.

If you use a discnumber tag, then add it after the %album% tag. I don't use %discnumber%, I include it as part of the %album% tag, so that is why it works for me, but not exactly the way you want it.

Also, the reason why I mention moving files (I actually said you won't have to with my option) is because golphcart suggested putting your VA albums in a folder called "zzz".
Sommerregen
Yes, i agreed with you about the moving. Maybe is should explain myself little bit better next time.

And the interesting thing about golphcarts ZZZ-folder: I dont have to create that folder, instead its using that zzz only for sorting. But dont ask me how.

Are you adding the discnumber automatically to the album-tag?



kockroach
QUOTE(Sommerregen @ Nov 6 2006, 22:04) *

Are you adding the discnumber automatically to the album-tag?

For example, I have under my Pearl Jam folder one folder for "Lost Dogs (Disc 1)" and "Lost Dogs (Disc 2)". I don't use a %discnumber% tag at all, so the discs are already going to be in order when I sort by the %album% tag.

You might want to try the following (again, this is for Playlist Tree)

Format:
CODE
%album artist%|%album%[ - %discnumber%]|$num(%tracknumber%,2). %title%


Population Order:
CODE
$meta(album artist)|$if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%)|%album%|%discnumber%|$num(%tracknumber%,2)


I can't test this to see if it works exactly like it should, since I do not use the %discnumber% tag. However, I believe it should work for you.
Sommerregen
See,

i knew i miss something. I dont use the playlist tree. So that's maybe why it dont works for me.
And the discnumbers.

Okay, i need some time to take a look at the tree.
But i'm not so sure, i will use it, cause i dont change the content of my playlists so often.
I use it more as a index of my music, quickly jumping between the titles.

Same place, when i know more.
Insolent
Try:

CODE
$if($strcmp($meta(album artist),
1[%artist%][%album%][%discnumber%][%tracknumber%],
0%album%|%discnumber%|%tracknumber%,
)


Basically, it puts a 1 before VA albums and a 0 before non-VA albums. And because 0 comes before 1, the non-VA albums will appear at the top.
kockroach
Well, the population order code I provided might work as a default sort string as well. It can also work in the foo_browser component (from cwbowron, creator of Playlist Tree).
golphcart
This is basically the same as my last suggestion, but I think it is "prettier."

CODE

$if($strcmp($meta(album artist),'Various Artist'),
'Various Artists'|%album%|%discnumber%|%tracknumber%,'Single Artists'|
[%artist%][%album%][%discnumber%][%tracknumber%])


Sommerregen
Thanks to everybody!

@insolent

You forget in your string to divide between Various Artist and "normal" Album artist. So your string puts a 1 in front of every album which contains a album artist. Also the string is therefore not complete.

@kockroach

Cant get it to work. Also dont want change my system of tagging and my file structure.
(Artist\Album\Artist - Album - Tracknumber - Title)


@golphcart

I understand, that the "V" from "Various Artist" comes after the "S" from "Single artist".
Explains the sorting.
But can you tell me where the sort string put the "Various Artist" respective "Single Artist" information? Just in clipboard?

For the problem with the single songs after the Album songs i find a solution by myself.
I use a masstagging script which writes a number in a custom tag (%sortorder%).
For example a 0 in albums and a 1 in singles.
Than i just sort by
CODE
[%artist%][%sortorder%][%album%][%discnumber%][%tracknumber%]


Works good for me.
golphcart
QUOTE(Sommerregen @ Nov 17 2006, 22:24) *

But can you tell me where the sort string put the "Various Artist" respective "Single Artist" information? Just in clipboard?


Huh. This whole time I thought this was an album list formatting string (hence the use of the | ). Either way, I don't believe that any information is stored. The sort string does just that. It sorts strings. I just added my own strings, whereas the most basic sort strings are comprised of tags (which are strings...). If this is not correct, someone please correct it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.