Music tree - can we make a recently added albums container?

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
User avatar
Briain
Posts:478
Joined:Thu Jan 03, 2008 8:07 pm
AV Hardware:Linn Klimax DS
Linn Majik DS-I
Linn Sneaky DS
WDTV Live Hib
Sonos 80
Location:Edinburgh, Scotland
Music tree - can we make a recently added albums container?

Post by Briain » Sat May 30, 2009 2:08 pm

Hi

The below lines (from default.view.xml) are the ones that show the recently added tracks. I was thinking that it would be really cool if it could be adapted to show recently added albums as opposed to just a big list of tracks.

<container name='playlistrecentlyadded' filteron='pv:addedLast60' sortcriteria='-pv:addedTime' createClass='object.item.audioItem.musicTrack' maxitems='500' upnp:originalTrackNumber='3' restricted='1' class='object.container.playlistContainer' flags='pv:smartplaylist=1'/>

I've tried several things (including an additional buildon line) but have not yet got it to correctly work. One thing I was wondering about is that the maxitems criteria. I guess that even if I did containerise the tracks into albums, the maxitems would only set a limit on objects within the final containers (i.e. setting it to 50 would just mean you limited the tracks in each album to 50) as opposed to limiting the container count to the last 50 albums.

Anyone have any thoughts on how we could best do this? I'm thinking I need an (undocumented) expression to limit containers; if it even exists.

Bri

Locked