Philip Meyer;597801 Wrote:
>
> I discovered the option to avoid repeating tracks:
> -- PlaylistOption DontRepeatTracks:1
>
> Is this equivalent of doing a filter such as:
> NOT EXISTS (SELECT 1 FROM dynamicplaylist_history WHERE
> dynamicplaylist_history.client='PlaylistPlayer' AND
> dynamicplaylist_history.id=tracks.id)
>
> i.e. does "DontRepeatTracks:1" only look for dynamic playlist history
> for the current player?
>
It's supposed to, but looking at the code in SQL Playlist in its
"getTracksForResult" function it looks like there is a bug so it isn't
limited to current player. At the moment I think it removes all tracks
that have been added earlier independent which player they have been
added on.
The purpose of PlaylistOptionDontRepeatTracks is to use it together
with PlaylistOptionContentType. PlaylistOptionContentType can be used
to specify that the SQL will return album, artist, year, genre,
playlist instead of tracks. In the case the SQL doesn't return tracks,
the PlaylistOptionDontRepeatTracks is used to make sure it doesn't add
tracks that has already been played.
--
erland
Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=84248
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins