MillmoorRon;350226 Wrote: 
> Does that then play all the tracks that have never been played (in a
> random order) then move on to tracks that have been played once, and so
> on?
> 
Yes

MillmoorRon;350226 Wrote: 
> 
> If so, is there a way to select the x% least played tracks?
> 
> e.g. if you have quite a few tracks and listen randomly, the older ones
> (which have been in the database longest) will probably have been played
> most often but newer ones maybe only once. Can you get a playlist that
> includes the least played 20% of the total tracks available - which may
> have been played once to 10 times but not tracks that have been played
> 50 times? (and not just below a specific playcount<n value)
> 
Let's say you have 4 tracks
Track1: Never played
Track2: Played once
Track3: Played twice
Track4: Played 50 times

Scenario 1:
If you have configured the playlist to not repeat already played
tracks, it will play them in the order Track1, Track2, Track3, Track4
and then stop playing.

Scenario 2:
If you have configure the playlist to allow reapeating tracks, it will
play track1 and then (track1 or track2) and then (track1 or track2) and
then (track1 or track2 or track3) and continue to do so until they all
has been played 50 times and then it will start to also include
track4.

In scenario 1 I can see a reason to limit the tracks to the bottom 20%,
in scenario 2 it should work almost as you want. The problem with
scenario 2 is that it will probably repeat the bottom tracks a lot in
the beginning.

It can be done also in scenario 1 but it requires you to rewrite the
SQL a bit. To make it easier I think you may want to limit it to 1000
tracks instead of 20 percent. You will need to have two SQL statements
to do this, one that selects the bottom 1000 tracks and one that
selects one of those to add to the playlist.

Take a look at the SQL of the playlist type "TrackStat most played
songs" and you might get some ideas. That playlist is similar to what
you want but it plays the 50 most played tracks instead of least
played.

You can also take a look at the SQL of the playlist type "Random rated
songs" and you might get some more ideas. The "Random rated songs"
playlist type selects x% of low rated tracks and y% of high rated
tracks and combine them in the same playlist.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) 'My download page'
(http://erland.isaksson.info/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library and Database Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=53604

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to