Bug 150610 - Add Dynamic Playlist API for scripts
Summary: Add Dynamic Playlist API for scripts
Status: CONFIRMED
Alias: None
Product: amarok
Classification: Applications
Component: Tools/Script Manager (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on: Script_API
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-08 23:05 UTC by poelzi
Modified: 2014-12-21 03:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description poelzi 2007-10-08 23:05:28 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages

The dynamic playlist is a nice feature, but somehow i got bored by its way of selecting songs.
I started to implement a script driven dynamic playlist but got confronted with some limitations of the script api that causing to make a not so good impression like the builtin dynamic playlist.
I suggest adding a API similar to the lyric script API but for dynamic playlists. 

Allowing scripts to:
- To add entries to the "Playlists" Tab under "Dynamic Playlists"
  I think the best would be to allow scripts to add more the one entry so different behaviors could be added to one script instead of many. 
- Add/Remove and control/react to buttons of the dynamic playlist toolbar
Comment 1 Eugene R. Miller 2007-12-24 15:52:18 UTC
http://kde-apps.org/content/show.php/cueIt?content=72056 is a dynamic playlist, and it's true, there needs to be an api around a custom dynamic playlists.

Like enabling/disabling genres.  Of course you can do that now sorta, but there's a whole lot of other things, like scheduling that could be done easy enough using a genre.


Comment 2 Ralf Engels 2011-01-15 00:06:55 UTC
The build in dynamic playlist is doing a big effort to optimize the results.
Getting a script into the loop would slow down the whole process too much.
So I am against a script driven Bias.

However you can emulate the Dynamic playlist behaviour with the current API.
In principle you just add a song at the end and remove one from the front.

I've written such a script for MPD in Perl before and I think nothing speaks against doing that for Amarok.

What do you think, is that good enough?
Comment 3 Mark S. 2011-12-22 00:33:07 UTC
Is this bug still relevant? Because it could probably be closed based on Ralf Engels comment.
Comment 4 Ralf Engels 2011-12-22 08:11:52 UTC
No, it's still valid.
We still don't have a scriptable dynamic playlist API.
Comment 5 metalbrick 2014-12-21 03:18:53 UTC
*** This bug has been confirmed by popular vote. ***