bernt wrote: 
> Hi!
> 
> Is there a way to use DPL so that songs in a Spotify playlist always
> plays in random order?
> 
> Regards
> Bernt

DPL can fetch Spotify tracks that are *part of your LMS library* = that
have been added to your LMS library as part of an album. LMS does not
import single online tracks or tracks of online playlists as *library*
tracks. So if you meant a Spotify list of non-library tracks, then no.
Otherwise your custom dynamic playlist would probably look like this:


Code:
--------------------
    -- PlaylistName:Songs - Spotify library tacks random
  select distinct tracks.url from tracks
  left join dynamicplaylist_history on
  dynamicplaylist_history.id=tracks.id and 
dynamicplaylist_history.client='PlaylistPlayer'
  where
  tracks.content_type = 'spt'
  and tracks.secs >= 'PlaylistTrackMinDuration'
  and dynamicplaylist_history.id is null
  order by random()
  limit 'PlaylistLimit';
  
--------------------



'*github repos*' (https://github.com/AF-1/)
------------------------------------------------------------------------
afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=115073

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to