[Rhythmbox-devel] rhythmdb entries



I am trying to access the rhythmdb, I checked the "plugin writing guide"

but the only thing I can find is the following snippet:

%<
for row in mysource.props.query_model:
        entry = row[0]
        print db.entry_get(entry, rhythmdb.PROP_TITLE)
%<

is there a document that shows how to use the rhythmdb?

For accessing all rows in the db, do I just loop through it and than get data out of an entry by using something like:
'db.entry_get(entry, rhythmdb.PROP_TITLE)'  , like in the above snippet?

I see there is a rhythmdb.PROP_TITLE, is there also a rhythmdb.PROP_ARTIST, rhythmdb.PROP_ALBUM, etc etc (is there a list of these?)

thanks,

Ron




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]