I have written some simple SQL Playlist queries, which are working well. Some
are the same, but look for specific artists, eg:
Play random Pink Floyd albums
Play random Genesis albums
I was wondering if there would be any way of defining and passing parameters
into the queries, so I could write queries such as "Play random albums by
{artist}"?
I was thinking that this could work in either of two ways (or both!):
1) When selecting a query, the plugin would look for info within the query to
know what to prompt the user to enter. eg. either interpret items within the
playlist title (like my {artist} example above), or embed some special metadata
within a comment at the top of the query to define each parameter (this might
also allow additional info to be configured, like defaults for the parameters).
Initially, this could be kept simple, so all param input is simply text entry.
Eventually the param metadata could allow specific input formats (so a param
could be declared as being a general string/integer, or has to be a valid
artist/album/genre/year, etc. Then the parameter entry mechanism could allow
better selection techniques.
eg, a query "Play random songs from a playlist" could define a single parameter
(of type playlist), and the entry of this param would enumerate over the valid
(static) playlists.
2) Browse the music database using standard browsing methods. After navigating
to an item (eg, displaying a normal playlist name, artist name, album name,
year, genre, etc), press some special button to invoke the Dynamic Playlist
function, which would use the currently displayed item as the first parameter.
Eg. Navigate to artist Pink Floyd. Press-and-hold play button, select "Play
random albums by {artist}".
Is this possible?
Phil
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins