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
rhythmbox-devel@gnome.org
http://mail.gnome.org/mailman/listinfo/rhythmbox-devel

Reply via email to