Hi there, i've created a rhythmbox plugin to handle it via web (you can find
it here <https://bitbucket.org/jimcerberus/rhythmweb>) and i'm trying to
query the rhythmbox db by something distinct than "song" entry type.
Code sample:
db = shell.props.db
type = (rhythmdb.QUERY_PROP_EQUALS, \
rhythmdb.PROP_TYPE, \
db.entry_type_get_by_name('iradio'))
query_model = db.query_model_new_empty()
query = db.query_new()
db.query_append(query, type)
db.do_full_query_parsed(query_model, query)
print query_model.get_size()
RETURNS: 0
Same code using "song" for type returns:
db = shell.props.db
type = (rhythmdb.QUERY_PROP_EQUALS, \
rhythmdb.PROP_TYPE, \
db.entry_type_get_by_name('song'))
query_model = db.query_model_new_empty()
query = db.query_new()
db.query_append(query, type)
db.do_full_query_parsed(query_model, query)
print query_model.get_size()
RETURNS: 28966122148
I've checked the rhythmdb.xml file and:
<?xml version="1.0" standalone="yes"?>
<rhythmdb version="1.6">
<entry type="iradio">
<title>Absolute Classic Rock (Modem)</title>
<genre>Rock'n'Roll</genre>
<artist></artist>
<album></album>
<location>
http://network.absoluteradio.co.uk/core/audio/ogg/live.pls?service=vc
</location>
<date>0</date>
<mimetype>application/octet-stream</mimetype>
</entry>
.....
</rhythmdb>
I'm using rhythmbox 0.12.8, and 0.11.5 with same results in both cases.
So, any help will be greatly appreciated.
Thanks in advance.
--
Pablo Carranza
_______________________________________________
rhythmbox-devel mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/rhythmbox-devel