afriend wrote: 
> 
> Is there an easy way to make DynamicPlaylist pick up SQL Playlists (not
> templates) bundled with my plugin (like CustomSkip picks up
> CustomFilters from other plugins)? I only found code referring to
> templates in Trackstat. Seemed overkill for the task I have in mind.
> 

You can integrate with Dynamic Playlist plugin directly which means that
you need to provide two methods, see here for more info:
https://wiki.slimdevices.com/index.php/Dynamic_Playlist_plugin#Dynamic_playlists_as_separate_plugins
This is how SQL Playlist plugin integrates with Dynamic Playlist and it
works without SQL playlist plugin being installed. Your plugin will be
called by Dynamic Playlist when it needs more tracks and it’s up to your
plugin to return the tracks that should be added.

Alternatively you can (as you have noticed) integrate with SQL Playlist
plugin, more information about this are available here: 
https://wiki.slimdevices.com/index.php/SQL_Playlist_plugin#Playlist_types_as_separate_plugins
This is how TrackStat integrates to provide statistics related
playlists. You will just provide a template and the rest will be handled
by SQL Playlist plugin. Advantage is mainly if you like the user to be
able to customize the playlist without you having to provide the code
for it.



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
Developer of 'many plugins/applets'
(https://wiki.slimdevices.com/index.php/User_Erland.html)
*Starting with LMS 8.0 I no longer support my plugins/applets* ('see
here for more information'
(https://forums.slimdevices.com/showthread.php?49483-Announce-New-versions-of-erlands-plugins&p=998836&viewfull=1#post998836)
)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=113344

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

Reply via email to