Re: [Rhythmbox-devel] Dbus Interface Changed?
- From: Gareth Foster <earthwormgaz gmail com>
- To: Liron Tal <liricooli gmail com>
- Cc: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Dbus Interface Changed?
- Date: Sat, 14 Jan 2012 10:01:47 +0000
I've been wanting this functionality in Rhythmbox, I've had a bit of a
look at the code and raised a bug for it. Sounds like you're ahead of me
though, you might want to track your work here?
https://bugzilla.gnome.org/show_bug.cgi?id=664075
On Sat, 2012-01-14 at 00:40 +0200, Liron Tal wrote:
> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]