Dbus method to get current playlist

Bug #593301 reported by Grzegorz Lachowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Wishlist
Mathias Brodala

Bug Description

It would be nice to have getCurrentPlaylist or getCurrentlyPlayingPlaylist method.

Related branches

tags: added: dbus method playlist remote wish
tags: added: feature
removed: wish
Revision history for this message
reacocard (reacocard) wrote :

What should this method return? We can't exactly pass an entire Playlist object across D-BUS.

Changed in exaile:
status: New → Incomplete
Revision history for this message
Grzegorz Lachowski (gregory-lachowski) wrote :

It could get a list of a track title, an artist, an album, track nr and number on the list of every playlist element.
I am making a remote app for my android phone and I would like to have a possibility to get currently playing playlist and currently playing track and use this information to choose track from the list remotely. Is it possible to implement?

Revision history for this message
Grzegorz Lachowski (gregory-lachowski) wrote :

If this amount of data is too much to retrieve via dbus, the method could get only filenames of the playlist elements (quodlibet does similar thing)

Revision history for this message
reacocard (reacocard) wrote :

The amount of data isn't the issue, it's how to structure it. Perhaps instead of transferring it directly however, we could add an ExportCurrentPlaylist(filename, format) call, which would export the currently-selected playlist to the given filename in the given format (m3u/pls/asx/xspf). That way external programs can get it in whatever format they are most comfortable with, and it is more future-proof as well.

Revision history for this message
Grzegorz Lachowski (gregory-lachowski) wrote :

This is a perfect solution

Revision history for this message
Mathias Brodala (mathbr) wrote :

Fixed with r3692. There now is a --export-playlist CLI option you can pass a playlist name to. The current playlist will be saved at that location then.

Changed in exaile:
assignee: nobody → Mathias Brodala (mathbr)
importance: Undecided → Wishlist
milestone: none → 0.3.3
status: Incomplete → Fix Committed
Revision history for this message
Mathias Brodala (mathbr) wrote :

Uh, and of course there is an ExportPlaylist DBus method now.

Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.