Help - Search - Members - Calendar
Full Version: Using descriptive tags with Album List Panel
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
socklapse
Hello everyone. I'm trying to get my own descriptive (del.icio.us-like if you will) tags to show up properly in the Album List.

I've added the following string to the Album List views box:

CODE
$if3(%contentgroup%,[%content group%],none)|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)


Which gets me a listing of files that have the "CONTENTGROUP" or "CONTENT GROUP" tag, divided by each field. But I'd like to have the Album List recognise the individual tags within each field, which are seperated with semicolons.

(And a little other thing, does anyone know how you would you get my "None" label to display at the top and not have it stuck in the middle of actual tags?)

To put it all simply, the album list displays:

CODE
- All music (476)
  + Epic;Whimsical;Druggy;Theatrical;Poignant;Ethereal (1)
  + Intense;Eccentric;Intense;Eccentric;Quirky;Difficult (1)
  + None (12)
  + Winter;Solitude;Late Night;Feeling Blue;Somber,Refined(1)
  +
...and so on and so on

And what I want is:

CODE
- All music (476)
  + None (12)
  + Eccentric (23)
  + Epic (20)
  + Ethereal (30)
  + Intense (22)
  + Late night (13)
  +
...and so on and so on

Any ideas? I tried playing around with the $meta_sep(X,Y,Z) function to have the tags read separately but I got very confused.
kanak
Have you tried %<contentgroup>% ?
socklapse
QUOTE(kanak @ Dec 21 2007, 17:59) *

Have you tried %<contentgroup>% ?


Ok I just tried using triangle brackets and had another go at using the $meta_sep function. My new string:

CODE
$meta_sep(%<contentgroup>%,%<content group>%,;)$if3(%<contentgroup>%,[%<content group>%],none)|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)
does the same thing without reading the tags seperately, so it didn't work.

EDIT: I went into Preferences > Advanced. In Multivalue fields it says "ARTIST;ALBUM ARTIST;PRODUCER;COMPOSER;PERFORMER;GENRE;" so I tried to work magic by adding to this line "CONTENT GROUP;CONTENTGROUP." Unfortunately, on loading up the Album List again there is is still no luck..does anyone have some other ideas? blink.gif emot-v.gif
Purple Monkey
You will need to rewrite the fields as multiple fields. At the moment the fields contain "type1;type2;type3" and you want 3 fields (with the same name) with "type1", "type2" and "type3". It should be enough to just edit the current value (eg. add a space after a semi-colon) and let foobar split them. (foobar will show the values seperated by a semi-colon followed by a space.)

You should be able to automate this. I'm not sure how to do this in the new betas and I don't have one to hand, but its doable with the old masstagger component. IIRC you just need to create a new action to SPLIT "content group" ";".

If you don't want this then AFAIK it's not currently possible in album list.
incunabula
This thread seems to be related to what you are attempting to do and may give you some new ideas as well.
socklapse
QUOTE(Purple Monkey @ Dec 22 2007, 03:46) *

You will need to rewrite the fields as multiple fields. At the moment the fields contain "type1;type2;type3" and you want 3 fields (with the same name) with "type1", "type2" and "type3". It should be enough to just edit the current value (eg. add a space after a semi-colon) and let foobar split them. (foobar will show the values seperated by a semi-colon followed by a space.)

Ok, thanks Purple Monkey! Now it can recognise that there are multiple values present and split them up, when dealing with the CONTENT GROUP field (with a space).

But (always a but) it still doesn't work when it comes to the CONTENTGROUP field (without a space). Like before it just lays the whole field out on one line without recognising its multiple values.

Yes, oddly, iTunes writes CONTENT GROUP to MP3 files and CONTENTGROUP to M4A files so I have set Preferences > Advanced > Multivalue fields to include CONTENT GROUP and CONTENTGROUP.

I am convinced that this is a problem with my Album List string
CODE
$meta_sep(%<contentgroup>%,%<content group>%,;)$if3(%<contentgroup>%,[%<content group>%],none)|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)

because if I write an MP3 CONTENT GROUP field to an M4A file, foobar2000 suddenly recognises its multiple values. As you may or may not be able to tell, I made a hack job of trying to write it so it reads and splits multiple values for both fields. Does anyone see what I might have wrote wrong in the string?
Purple Monkey
I'd remove the $meta_sep, it's ment to do the reverse, convert multvalue fields to one string. I would have thought that
CODE
$if3(%<contentgroup>%,%<content group>%,none)
would split it like you want, if the fields are mutualy exculsive.

As for the space/no space, have you got a semi-colon on the end of the Multivalue fields string? I think it's required.
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.