IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Custom Library View Syntax
AzaIndustries
post Nov 6 2012, 11:23
Post #1





Group: Members
Posts: 2
Joined: 6-November 12
Member No.: 104357



Hey everyone, Just discovered this awesome program a few days ago and have been blasting music out through WASAPI all day long.

But I've been having a problems trying to get the library view to work the way I want it. I've been reading the Title Formatting wiki page again and again and tried numerous things but I can't get my idea to work.

at the moment I am using this:
[%album artist%|]%album% [Disc %discnumber%] %codec%|[%track%] - %filename%

But I've been trying to create a way so that it only uses the album artist part if that artist has more then 1 album otherwise it will just list the albums in the library without the artist.

I've tried numerous stuff like:

%album artist%|$ifgreater(%album%,1,
%album artist%|%album% [Disc %discnumber%] %codec%|[%track%] - %filename%,
%album% [Disc %discnumber%] %codec%|[%track%] - %filename%)

But I fear I just don't understand this stuff well enough to get it to work.
Any help would be greatly appreciated!

P.S. Please don't laugh at my attempt above

Go to the top of the page
+Quote Post
marc2003
post Nov 6 2012, 11:36
Post #2





Group: Members
Posts: 4469
Joined: 27-January 05
From: England
Member No.: 19379



what you're asking isn't possible. it's not possible to "count" albums like that. the only way you could do it would be to tag each track with custom tags which would be ugly and would require manual updating every time an album is added/removed from your collection.

you *might* have some luck with foo_uie_sql_tree. i don't use it myself so have no idea what it's really capable of.

http://www.foobar2000.org/components/view/foo_uie_sql_tree

This post has been edited by marc2003: Nov 6 2012, 11:36
Go to the top of the page
+Quote Post
ruebe
post Nov 6 2012, 12:03
Post #3





Group: Members
Posts: 187
Joined: 18-September 10
Member No.: 83940



i am not sure what library viewer you're using, and wheter you're willing to switch it
furthermore i also don't know if my suggestion works...
anyway, have a look at esplaylist - this component has a special tag, %es_subgroup_count%, that, well, counts subgroups...it works great for tracks in albums, and i guess it as well can be used to count albums
Go to the top of the page
+Quote Post
AzaIndustries
post Nov 6 2012, 13:50
Post #4





Group: Members
Posts: 2
Joined: 6-November 12
Member No.: 104357



Hey thanks a lot for that!
It seems like it should work, now I just need to figure all this programming stuff out.
Go to the top of the page
+Quote Post
mjm716
post Nov 6 2012, 18:20
Post #5





Group: Members
Posts: 155
Joined: 27-May 10
From: EST
Member No.: 80935



QUOTE (AzaIndustries @ Nov 6 2012, 14:50) *
Hey thanks a lot for that!
It seems like it should work, now I just need to figure all this programming stuff out.


At one point I was working through a similar wish (I think).

It made sense to me at the time to update my physical folder naming structure, so if a band only had one album the folder name was %artist% - %album% (%date%); otherwise structure is nested %artist% | %date% %album%.

That gives an easy way to title reference 'single servings'.

I used this as a filter to handle names containing ' - ' as well as Various Artists...

$caps($left($stripprefix(%album artist%),1))|$stripprefix(%album artist%) $if($strstr(%directoryname%,' - '),':' $if2(%releaseyear%,%date%) %album% '['%genre%']'| %tracknumber% %title% $if(%releaseyear%,%date%) '['%length%']' $repeat(★,$meta(rating))$if($strchr($meta(rating),.),☆),| $if($stricmp(%album artist%,Various Artists),$stripprefix(%album%) ['CD'%DISCNUMBER%] $if2(%releaseyear%,%date%) '['%genre%']',$if2(%releaseyear%,%date%) $stripprefix(%album%) ['CD'%DISCNUMBER%] '['%genre%']')| %tracknumber% %title% $if(%releaseyear%,%date%) '['%length%']'$repeat(★,$meta(rating))$if($strchr($meta(rating),.),☆))

regards
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2014 - 04:30