Re: db.entry_get changes for plugins

Jonathan Matthew <[email protected]>
Newsgroups gmane.comp.gnome.apps.rhythmbox.devel
Message-ID <CAGUdnJm+_-euL6KkxW7pzO9JUDGFQzgxJDNSOfUwZQwSr8U_RQ@mail.gmail.com>
On Thu, Nov 24, 2011 at 6:03 PM, Lachlan <[email protected]> wrote:
> So now that Debian testing is running git versions of Rhythmbox I've
> been updating my plugin.
>
> So far i have it activating and the menu items are populating which is
> awesome, now i just have to work out functionality
>
> from what i've found on the net it should be changing from one line to
> the next one:
> self.db.entry_get(db_entry, rhythmdb.PROP_ALBUM)
> self.db.entry_get(db_entry, RB.RhythmDBPropType.ALBUM)
>
> When i run this though i get told that entry_get() takes 4 arguments (3 given)
>
> I think this has to do with self.db but i'm unsure about where to check.

entry.get_string(RB.RhythmDBPropType.ARTIST)

The plugins in the source tree are generally kept up to date with API
changes, and they're also what I use to figure out what to do with the
API.
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.