GNOME Bugzilla – Bug 643782
Duplicate playlists exported via MPRIS
Last modified: 2011-03-21 18:39:55 UTC
It seems as if 'Favourites' playlists for both video and audio are being exported over MPRIS. This results in two items in the Sound Menu having the same name. On activating each one it can be seen that 'Favourites' for video is activated for one and 'Favourites' for audio is activated from the other. Ideally the Favourites playlist for videos should not be exported. https://bugs.launchpad.net/banshee/+bug/728263
As we discussed, not exporting video playlists over MPRIS might not be ideal, as other clients might be interested in them. But there's currently no way for MPRIS clients to distinguish video playlists. So I have a 2 line patch for Banshee which adds the type of the parent source in the Playlist_Id for each playlist. This value is currently an object path, so it make some sense. You'd get something like : ('/org/bansheeproject/Banshee/VideoLibrarySource/Playlists/SmartPlaylistSource5', 'Favorites', 'file:///...'), ('/org/bansheeproject/Banshee/MusicLibrarySource/Playlists/SmartPlaylistSource1', 'Favorites', 'file:///...'), You can then filter out all playlist which contain /VideoLibrarySource/ in their ID. If that works for you I'll commit my patch ASAP.
Sounds good Bertrand. Once that patch has found its way to hyperair's daily build I will release my part of the fix. Thanks.
I just committed my patch : http://git.gnome.org/browse/banshee/commit/?id=0950a0e08 It should make its way in the daily PPA in the next 24 H. Side note : Don't expect all music playlists to have /MusicLibrarySource/. For example the play queue will have something like : /org/bansheeproject/Banshee/Playlists/Playqueue