This plugin allows you to create and execute smart playlists linked to your music collection.
A smart playlist is a playlist generated with a custom database query. Once created, this playlist can be played in the music module of MePo
How it works?
- First you have to define the smartplaylists you want to play in the plugin config in Mediaportal configuration.
A smartplaylist is caracterised by a name and a query database, but only the "WHERE" clause must be defined.
All you need is to write the criteria of the where clause for each smartplaylist in the array of the configuration form.
name="30 random songs but no pop" criteria="strGenre != '| Pop |' ORDER BY RANDOM() LIMIT 30"
name="Only 20 songs of Indie Music" criteria="strGenre == '| Indie |' LIMIT 20"
name="30 random songs were added in the past 2 weeks" criteria="dateAdded >= date('now','-15 day') ORDER BY RANDOM() LIMIT 30"
Be careful with the criteria of the clause, every fields must be surround with symbol |.
Furthermore, if you want to compare a field with symbol "<", XML cannot accept it. You must replace it by "<"
- Start MP, go to SmartPlaylists
- Select a smartplaylist
- You can add the generated playlist, run a previous smartplaylist thanks to history, jump to my music or jump to the current playing song
Notice: if only 1 smartplaylist is defined then the selection takes it and executes it automatically