Dbus Interface Changed?

Liron Tal <[email protected]>
Newsgroups gmane.comp.gnome.apps.rhythmbox.devel
Message-ID <CAM_Zp-DHXmNE_CL_-Cci233mKzCB8J0kxNXhCObrB0ZTQ6tLxg@mail.gmail.com>
Hi Guys, I've written a nice script to sync metadata such as Ratings and
Playcounts Between my Ipod and Rhythmbox.

I haven't used it in quite a while, and now while running it I get this
Exception:
I'm using the "exportPlaylist" method.

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
> Method "exportPlaylist" with signature "ssb" on interface
> "org.gnome.Rhythmbox.PlaylistManager" doesn't exist
>
>
Here's the piece of code I'm using to init a Dbus object, and the line I
use to export the playlist

self.bus = dbus.SessionBus()
>         self.rbshellobj = self.bus.get_object('org.gnome.Rhythmbox',
> '/org/gnome/Rhythmbox/Shell')
>         self.rbshell = dbus.Interface(self.rbshellobj,
> 'org.gnome.Rhythmbox.Shell')
>         self.rbplayerobj = self.bus.get_object('org.gnome.Rhythmbox',
> '/org/gnome/Rhythmbox/Player')
>         self.rbplayer = dbus.Interface(self.rbplayerobj,
> 'org.gnome.Rhythmbox.Player')
>         self.rbplaylistmgrobj= self.bus.get_object('org.gnome.Rhythmbox',
> '/org/gnome/Rhythmbox/PlaylistManager')
>         self.rbplaylistmgr=dbus.Interface(self.rbplaylistmgrobj,
> 'org.gnome.Rhythmbox.PlaylistManager')
>

    def get_rhythmbox_playlist(self, name):
         self.rbplaylistmgr.exportPlaylist(name, 'file:///'+fname, True)

Any Ideas why this isn't working now ?

Regards,
Liron.

_______________________________________________
rhythmbox-devel mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.