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 643782 - Duplicate playlists exported via MPRIS
Duplicate playlists exported via MPRIS
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Other Extensions
1.9.4
Other Linux
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
banshee:ubuntu
Depends on:
Blocks:
 
 
Reported: 2011-03-03 14:23 UTC by Conor Curran
Modified: 2011-03-21 18:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Conor Curran 2011-03-03 14:23:42 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
Comment 1 Bertrand Lorentz 2011-03-19 16:42:15 UTC
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.
Comment 2 Conor Curran 2011-03-21 10:22:50 UTC
Sounds good Bertrand. Once that patch has found its way to hyperair's daily build I will release my part of the fix. Thanks.
Comment 3 Bertrand Lorentz 2011-03-21 18:39:55 UTC
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