After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 138317 - I want a way to create a playlist from the command line.
I want a way to create a playlist from the command line.
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Programmatic interfaces
0.6.5
Other All
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-03-28 06:38 UTC by Hal Canary
Modified: 2006-02-15 05:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hal Canary 2004-03-28 06:38:21 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.
Comment 1 Alex Lancaster 2006-02-15 05:22:55 UTC
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
Comment 2 James "Doc" Livingston 2006-02-15 05:55:01 UTC
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'