INTERACT FORUM

More => Old Versions => JRiver Media Center 21 for Windows => Topic started by: drc on June 19, 2016, 11:06:56 am

Title: add Total Number of Albums per Artist
Post by: drc on June 19, 2016, 11:06:56 am
Is it possible to add total number of albums per artists.  Trivial put would like to add it if possible to create / calculate total as it changes.


Thanks
see attached
Title: Re: add Total Number of Albums per Artist
Post by: AlanDistro on June 19, 2016, 07:58:41 pm
That would be cool, especially if we could sort by album totals, so I could see the most popular/prolific artists in my library, etc.
Title: Re: add Total Number of Albums per Artist
Post by: marko on June 19, 2016, 10:10:29 pm
I'm sure that's possible. I currently do it with movie box sets, where I have the number of movies within the set shown after the set name.

I'll post details when I get home later.
Title: Re: add Total Number of Albums per Artist
Post by: marko on June 20, 2016, 12:41:29 am
Here you go, this seems to work for me, using [album artist (auto)], just substitute with [album artist] if you prefer that...
With a little font colouring...
(http://www.mpw.scot/pics/ia/21/snap-084.jpg)

Build your category like so:
(http://www.mpw.scot/pics/ia/21/snap-086.jpg)

You can copy the expression below and substitute your preferred field if [album artist (auto)] is not your preferred field
Code: [Select]
[album artist (auto),1] <font color="0xaeafce">if(isequal(groupcount(album),1,5),/(groupcount(album) Albums/),/(groupcount(album) Album/))<//font>
-marko
Title: Re: add Total Number of Albums per Artist
Post by: ~OHM~ on June 20, 2016, 09:05:28 am
marko, this is a great idea but I can't get it to work. am I missing something?

opps never mind...I got it...thanks

I was expecting to see it in the tab window....
Title: Re: add Total Number of Albums per Artist
Post by: ~OHM~ on June 20, 2016, 09:52:46 am
Wow...didn't know there was so many ways to spell Various Artists.....lol....finding lots of mistakes....thanks for this!
Title: Re: add Total Number of Albums per Artist
Post by: phalanthus on June 20, 2016, 11:23:27 am
 ;D

can we sort by number of albums?

found it

 ;D ;D
Title: Re: add Total Number of Albums per Artist
Post by: ~OHM~ on June 20, 2016, 01:03:43 pm
;D

can we sort by number of albums?

found it

 ;D ;D

do tell
Title: Re: add Total Number of Albums per Artist
Post by: phalanthus on June 20, 2016, 11:41:50 pm
 ?

maybe i didn't
Title: Re: add Total Number of Albums per Artist
Post by: marko on June 21, 2016, 12:34:16 am
I tried a few things here just now but none of them worked. I'm thinking it's not possible this way as sorting is derived from the "Expression to group by", then we use that grouping to generate the stats in "Expression to display"
Title: Re: add Total Number of Albums per Artist
Post by: drc on June 26, 2016, 06:32:57 pm
Wow - Perfect... easy to implement.

Drawing a blank:  where can I change the font color or does it go with the theme.  

Again, thanks perfect solution.
Title: Re: add Total Number of Albums per Artist
Post by: marko on June 27, 2016, 12:01:31 am
Wow - Perfect... easy to implement.
Again, thanks perfect solution.
You're welcome :)

Drawing a blank:  where can I change the font color or does it go with the theme.
[album artist (auto),1] <font color="0xaeafce">if(isequal(groupcount(album),1,5),/(groupcount(album) Albums/),/(groupcount(album) Album/))<//font>

The 6, bold, red, letters I've hilighted above give the font its colour. Change those, and you change the colour.
This page will help: ---> http://www.color-hex.com/ (you just need the six letters/numbers, ignore the #)

-marko