INTERACT FORUM

Please login or register.

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

Author Topic: Smartlist sorted by number of tracks per album?  (Read 1823 times)

sthomp

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 70
  • I'm a llama!
Smartlist sorted by number of tracks per album?
« on: May 28, 2012, 10:45:57 am »

Is it possible to sort a playlist based on the number of tracks it contains from different albums? For example, if there were 3 tracks from Album A, 6 tracks from Album B, and 9 tracks from Album C, then all Album A tracks would come first, followed by Album B tracks and then Album C tracks.

Thanks!
Logged

vagskal

  • Citizen of the Universe
  • *****
  • Posts: 1227
Re: Smartlist sorted by number of tracks per album?
« Reply #1 on: May 28, 2012, 12:02:16 pm »

It might be possible to do this in a smartlist with the new global variables. An easier way of achieving this would, however, be to create a new categories view where you set the rules for file display to the same rules as you have in your smartlist (Customize View => Set rules for file display; you can export/import your rules), set the category to Album and the list style to Thumbnails and sort by Track #. If you select all items shown (ctrl + a) and issue a play command (right click), the tracks should play in the order you want.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Smartlist sorted by number of tracks per album?
« Reply #2 on: May 28, 2012, 09:40:45 pm »

You can also set the rules for file display to include only the Smartlist/Playlist, so you don't have to replicate the rules.

If you set the Sort By to Number of Files, you'll get the sorting you want in a Categories view (and the list style can be either Thumbnails or Details).
Logged
The opinions I express represent my own folly.

sthomp

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 70
  • I'm a llama!
Re: Smartlist sorted by number of tracks per album?
« Reply #3 on: May 29, 2012, 09:44:17 pm »

Thanks for the ideas. I've just tried creating the category view, and it's getting pretty close to what I was looking for, but there's one thing I can't figure out.  Most albums are grouped separately, listing the total number of tracks in the "Number of Files" field, as expected. However, albums with multiple artists list each artist/album line separately, with 1 as the Number of Files. I tried using the Grouping setting (Customize View > Show Categories In This Order Album > Edit > Library Field: Album > Grouping: Checked > Grouping Size: 1), but this led to strange results in which one album was split across multiple list entries, while other albums were combined into one.

I assume that I'm missing something about how to group them so only the Album field is considered, and not the Artist field. What am I missing? Thanks!
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Smartlist sorted by number of tracks per album?
« Reply #4 on: May 29, 2012, 10:25:16 pm »

They are being grouped by Artist, which will vary with compilations or multiple artists albums.  As your first category in the view, use [Album Artist (auto)] instead of Artist.  You can use an expression such as:

    [Album] - [Album Artist (auto)]

instead of a stock field.  You should return the grouping size to its default value.
Logged
The opinions I express represent my own folly.

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Smartlist sorted by number of tracks per album?
« Reply #5 on: May 29, 2012, 10:44:14 pm »

Attached are a couple of screenshots showing the expression, and results.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up