Skip to main content

Topic: Album Sort Order Tagging and Implimenting with Flacs & foobar (Read 3303 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • bburl
  • [*]
Album Sort Order Tagging and Implimenting with Flacs & foobar
A couple of questions:

According to this site, Vorbis (which I believe is the scheme FLAC uses for tagging) has no standardized field name for how an artist's name should be sorted.  That is, if an artist has his name entered as "First Last" in the artist field, there is no standard ancillary field that informs a program on how the name should be sorted. For example if someone wanted to have the name appear as "First Last", but actually be sorted as if it were "Last, First", there is no standard field name in the vorbis scheme for that.  If that's true, any recommendations on what filed name I should use for an artist sort order type entry when I'm tagging?

Second, what code would I use to get foobar to sort artists differently than what is in the artist tag field?  I'm currently using in my Album List Panel settings Views box:

Code: [Select]
$if($meta(album artist),Various Artists,$meta(artist))|%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%


Anyway to get some kind of 'artistsortorder' thing in there that will allow me to have the names appear "First Last" but be sorted "Last, First"?

Thanks

Ps sorry if this has been asked and answered before, I did a fair amount of searching before posting.

  • 2E7AH
  • [*][*][*][*][*]
Album Sort Order Tagging and Implimenting with Flacs & foobar
Reply #1
If you mean i.e. "Johann Sebastian Bach" to be displayed as "Bach, Johann Sebastian" try this:

[font= "Lucida Console"]$right(%artist%, $sub($len(%artist%), $strrchr(%artist%, " ")))
,
$left(%artist%, $sub($strrchr(%artist%, " "),1))[/font]

or change %artist% to $meta(artist,0) or %album artist% or $meta(album artist,0) depending on your tagging preferences
Then of course it will be useless on band names so some control flow should be placed first

If you mean about prefixes "The" or "A", there is such function [font= "Lucida Console"]$swapprefix(%artist%)[/font]
Also for Album list panel it is possible to split multi value fields and swap prefixes in one step: [font= "Lucida Console"]$meta_branch_remap_swapprefix(artist)[/font]

As for the Album list panel, if you don't want sorting to be like Album list branching then: "preferences > media library > album list panel: advanced tab" and tick on "Apply core sort...". This way items sent by album list will be sorted by "preferences > general: sort incoming files by" pattern

[edit] grammar
  • Last Edit: 29 July, 2009, 08:25:32 PM by 2E7AH

  • drbeachboy
  • [*][*][*][*][*]
Album Sort Order Tagging and Implimenting with Flacs & foobar
Reply #2
Quote
Anyway to get some kind of 'artistsortorder' thing in there that will allow me to have the names appear "First Last" but be sorted "Last, First"?
See above.
  • Last Edit: 29 July, 2009, 08:27:20 PM by drbeachboy
Surf's Up!
"Columnated Ruins Domino"

  • bburl
  • [*]
Album Sort Order Tagging and Implimenting with Flacs & foobar
Reply #3
If you mean i.e. "Johann Sebastian Bach" to be displayed as "Bach, Johann Sebastian" try this:


What I'm hoping for is to have it displayed as Johann Sebastian Bach and have the 'artist' tag written as Johann Sebastian Bach, but have him appear with the 'B' artists when I'm looking at my library.
  • Last Edit: 29 July, 2009, 10:40:10 PM by bburl