GNOME Bugzilla – Bug 138317
I want a way to create a playlist from the command line.
Last modified: 2006-02-15 05:55:01 UTC
Suppose I just downloaded a bunch of mp3s and want to play them all. I'd like to be able to type rhythmbox -add-playlist directory/*.mp3 Then rhythmbox would add those files to the library, create a playlist, and queue up the first song in the playlist.
This sort of thing will probably be done via a D-BUS interface once the playlist functionality is exposed (don't think it is right now), and scripts (such as Python) could be written to do accept command-line options. See this mailing list post for ideas: http://mail.gnome.org/archives/rhythmbox-devel/2006-February/msg00005.html
The playlist manager has been exposed via dbus, with Rhythmbox from cvs. So you can now do this with a small python script, or dbus-send. e.g. dbus-send --dest=org.gnome.Rhythmbox /org/gnome/Rhythmbox/PlaylistManager org.gnome.Rhythmbox.PlaylistManager.createPlaylist string:'playlist name' dbus-send --dest=org.gnome.Rhythmbox /org/gnome/Rhythmbox/PlaylistManager org.gnome.Rhythmbox.PlaylistManager.addToPlaylist string:'playlist name' string:'file:///path/to/file.mp3'