INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Count number of albums  (Read 1822 times)

eharry

  • Recent member
  • *
  • Posts: 24
Count number of albums
« on: March 20, 2012, 07:40:25 am »

Hi,

I'm wondering if it is possible to count the number of albums.
1. in the Album view on the bottom (I can only see "no. of files (GB - days)"
2. as an expression to edit the thumbnail text in artist view (so I can see the no. of albums of any artist).

Thanks for help!
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4583
Re: Count number of albums
« Reply #1 on: March 20, 2012, 08:01:14 am »

hi,

welcum to the forum

1 i get the amount of albums in an album view at the bottom.. but that might only be when using album thumbs in the list view..

2. ive not found an easy way to do that, but maybe someone else can think of something easier..

i can do that because for all my albums i added a tracks total field which tells the total amount of tracks on the album, something i find usefull on many places for instance as info in Theater View.. and i dont split albums in different [disk #].

then i added a new library field with the expression:
Code: [Select]
If(isequal([track #],[Tracks Total],2),[Tracks Total],0)&datatype=[integer]i called it 'Tracks Total Avg Disc'

now in the artist thumbs i added:
Code: [Select]
formatnumber(math([track #]//[Tracks Total avg disc,0]),0) Albums
well.. bit long way. i hope some easier solution could come up.

 :)
gab
Logged

eharry

  • Recent member
  • *
  • Posts: 24
Re: Count number of albums
« Reply #2 on: March 20, 2012, 08:08:27 am »

Thank you for your immediate response! 

1. This is strange because I use album thumbs in the list view.
2. interesting approach!

Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: Count number of albums
« Reply #3 on: March 20, 2012, 10:02:25 am »

If you expand Albums from the Albums view in the Tree is tells you the total number of albums - All Albums(#).
Logged

bwaldron

  • Regular Member
  • World Citizen
  • ***
  • Posts: 148
Re: Count number of albums
« Reply #4 on: March 20, 2012, 11:53:41 am »

If you expand Albums from the Albums view in the Tree is tells you the total number of albums - All Albums(#).

However, I believe that number will be incorrect if you have multiple albums (i.e., by different artists) with the same name.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Count number of albums
« Reply #5 on: March 20, 2012, 03:07:25 pm »

I wasn't aware that [Track #] worked in this fashion for Thumbnail text.  Does it work in other places, such as Captions, etc.?

@Matt - this is useful, and I see it has been available for quite some time (and I've updated the entry in Tags wiki page).  Could this be generalized to apply to all fields, providing the count of the number of grouped items, such as (and I'm taking liberty to define a syntax, just for this discussion):

  [Name]
    Animals
    The Dark Side of the Moon
    A Momentary Lapse of Reason
    The Wall
    Wish You Were Here

  [Name,#]
     5

This would allow Thumbnails, Captions, etc. to show the number of items in the grouping below, obviating the approximation workaround via library field and expression that gappie uses now.
Logged
The opinions I express represent my own folly.

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4583
Re: Count number of albums
« Reply #6 on: March 20, 2012, 05:27:00 pm »

I wasn't aware that [Track #] worked in this fashion for Thumbnail text.  Does it work in other places, such Captions, etc.?

yes, track #,duration and i think an other one just count up.. with other values mc takes the average

 :)
gab
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Count number of albums
« Reply #7 on: March 20, 2012, 06:26:03 pm »

An Album Thumbnails list style in a Panes View (otherwise grouped by the default Artist-Album) with always show the correct number of albums selected in the status bar.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Count number of albums
« Reply #8 on: March 20, 2012, 06:41:20 pm »

That's how I typically use it too. 

I was thinking of a Categories view, such as Genres.  The Thumbnail text could be modified instead of being:

  [Name]

to be

  [Name] [Name,#]//[Track #]

thus yielding the genre, number of items (eg. albums) within the genre, and number of tracks within the genre.

Note: the n in the screenshot would be the number of items.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up