INTERACT FORUM

More => Old Versions => Media Center 17 => Topic started by: rhgh on April 05, 2012, 04:32:15 am

Title: with which function can i count the number of my albums
Post by: rhgh on April 05, 2012, 04:32:15 am
with which function can i count the number of my albums?
Title: Re: with which function can i count the number of my albums
Post by: Scolex on April 05, 2012, 07:25:25 am
If you have a Panes view with an Album category the number of Albums will be listed in parentheses to the right of "All Albums"
Title: Re: with which function can i count the number of my albums
Post by: wig on April 05, 2012, 08:11:09 am
Its also available from the default Albums view, in the left-hand column.

Title: Re: with which function can i count the number of my albums
Post by: Frobozz on April 05, 2012, 09:20:58 am
The problem with the default album counts in MC is that podcasts get counted as an album, singles get counted as an album, multi-disc albums can get counted as multiple albums (for example, the way I have "The Wall" named and organized it gets counted as two albums by MC because it is on two CDs).  It depends on how accurate you want to be in the album count.  I've never worried about it myself and use the count in MC as an approximate number for the number of albums I have in the library.  If I wanted an accurate count I'm sure I could make an expression in MC that would give me an accurate count.  I've never bothered.  One of these days I may, just to get an accurate count.
Title: Re: with which function can i count the number of my albums
Post by: rhgh on April 05, 2012, 09:59:47 am
i would create a caculated field for album artist and titel and show it on the display view (alternate display text)
Title: Re: with which function can i count the number of my albums
Post by: icstm on April 05, 2012, 10:49:29 am
is there a good guide to calculated fields?

Also for those with multi-CD albums, one way around it that I use is to number those album tracks as 101 and 201 rather than 01. So the MSD is the disc number.
Title: Re: with which function can i count the number of my albums
Post by: MrC on April 05, 2012, 11:14:40 am
is there a good guide to calculated fields?

Also for those with multi-CD albums, one way around it that I use is to number those album tracks as 101 and 201 rather than 01. So the MSD is the disc number.

The answers (and caveats) provided will get you the numbers.  As suggested, the counts are based on how the view is configured.  Start with examining the numbers in the tree under Albums, or using the Panes view and customize the view to include a column that includes the combination of  [Album] - [Album Artist (auto)].  This will be a close approximation, the discrepancies due to how you've named your albums.

There's plenty of info to guide further learning:

   FAQ:                http://wiki.jriver.com/index.php/Category:Frequently_Asked_Questions (http://wiki.jriver.com/index.php/Category:Frequently_Asked_Questions)
   Expressions:       http://wiki.jriver.com/index.php/Media_Center_expression_language (http://wiki.jriver.com/index.php/Media_Center_expression_language)
   Tags/Properties: http://wiki.jriver.com/index.php/File_Properties_%28tags%29 (http://wiki.jriver.com/index.php/File_Properties_%28tags%29)
   Custom View:     http://yabb.jriver.com/interact/index.php?topic=68960.0 (http://yabb.jriver.com/interact/index.php?topic=68960.0)
Title: Re: with which function can i count the number of my albums
Post by: rhgh on April 05, 2012, 11:29:35 am
i know this links, but i can not find a function to count the number of my albums (artist) (Titel)
Title: Re: with which function can i count the number of my albums
Post by: MrC on April 05, 2012, 11:34:30 am
It doesn't exist.

Think of MC expressions (calculated fields) as per-track expressions; in other words, MC runs the expression against the properties for a track, but that expression has no knowledge of the calculations from previous tracks.  So there's no Count() or Sum()-like functionality.

Groupings are managed internally by MC, so it can present the counts in the UI.
Title: Re: with which function can i count the number of my albums
Post by: rhgh on April 05, 2012, 11:44:49 am
what a pity
thanks MrC