Help - Search - Members - Calendar
Full Version: Indicate collections
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
joule
I have not seen the following been done before (maybe it has?) so i thought i would share. This is for use in columns_ui and is supposed to indicate albums that are collections (like greatest hits, best of, etc). See my screenshot below for an idea how to use it. I have marked all collections with a slightly different colour. Any ideas for improvement or optimization?

CODE

$if(%_is_various%,COL,
$if($if3(
$strstr($caps(%ALBUM%),Great),
$strstr($caps(%ALBUM%),Best),
$strstr($caps(%ALBUM%),Singles),
$strstr($caps(%ALBUM%),Collect),
$strstr($caps(%ALBUM%),Hits),
$strstr($caps(%ALBUM%),Essential),
$strstr($caps(%ALBUM%),Classic)),COL,NOTCOL))


user posted image
Insolent
You could probably check for the ALBUM ARTIST tag, which is used in compilations.

CODE

$if(

$if3($meta(album artist),
$strstr($lower(%album%),'greatest'),
$strstr($lower(%album%),'best of')),

YES,NO)
esa372
QUOTE(Insolent @ Jan 7 2006, 08:14 AM)
...the ALBUM ARTIST tag, which is used in compilations.
Here's the Wiki.
joule
QUOTE(Insolent @ Jan 7 2006, 09:14 AM)
You could probably check for the ALBUM ARTIST tag, which is used in compilations.


True, but then it will only mark albums with various artists? "Greatest hits" albums from a specific artist don't seem to have this tag.
Insolent
QUOTE(joule @ Jan 8 2006, 01:27 AM)
QUOTE(Insolent @ Jan 7 2006, 09:14 AM)
You could probably check for the ALBUM ARTIST tag, which is used in compilations.


True, but then it will only mark albums with various artists? "Greatest hits" albums from a specific artist don't seem to have this tag.
*


I used $if3(), which evaluates each value one by one until one of them is true.

So, first off the bat is $meta(album artist). If there's no ALBUM ARTIST tag, it'll move onto the next value - searching for the string 'greatest'. And if 'greatest' isn't found, it'll move onto the next one until it finds one that is true.

So yes, it will mark collections. It'll just search for VA albums first.
joule
QUOTE(Insolent @ Jan 7 2006, 07:30 PM)
I used $if3(), which evaluates each value one by one until one of them is true.

So, first off the bat is $meta(album artist). If there's no ALBUM ARTIST tag, it'll move onto the next value - searching for the string 'greatest'. And if 'greatest' isn't found, it'll move onto the next one until it finds one that is true.

So yes, it will mark collections. It'll just search for VA albums first.
*



Yes, I misunderstood the code. That's probably a good idea to check the album artist tag too. Thanks!
I've never used it and don't understand what it's for so i need to check it up. rolleyes.gif
sauce
Hey, really nice layout. I was wonder what the column with the arrows and dashes/numbers are for?

Also, is that an editbox? Is it for quick searching the database?
joule
QUOTE(sauce @ Jan 11 2006, 08:17 AM)
Hey, really nice layout.  I was wonder what the column with the arrows and dashes/numbers are for?


Thanks! The arrows are rating. I've tried to do something combining both colours and different symbols to have the rating indicated with only one character (and not just the number). Maybe it's not intuitive enough, yet.
The numbers are playcount, and dash if it's never played. Recently i had to do that column wider since some of my songs are now played more than 10 times since installing the playcount plugin smile.gif

QUOTE(sauce @ Jan 11 2006, 08:17 AM)
Also, is that an editbox?  Is it for quick searching the database?
*



The box is for searching the playlist. I believe the plugin is named 'playlist find'.

Playlist find thread
syrek
I would like to test your columns_ui config to see if I like it to work with, would you please post regular updates of your config smile.gif
joule
QUOTE(syrek @ Jan 12 2006, 11:48 AM)
I would like to test your columns_ui config to see if I like it to work with, would you please post regular updates of your config smile.gif
*



I think I should make it a little bit more configurable first, i.e. move a lot of stuff to global variables.

(I would love to see a bigger movement when it comes to columns_ui configurations that are a bit more minimalistic. I think i will start some topic on this eventually, and by this also post my configuration.)
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.