[Rhythmbox-devel] Query for entry type iradio does not returns a single char (by song does)
- From: Pablo Carranza <pcarranza gmail com>
- To: rhythmbox-devel gnome org
- Subject: [Rhythmbox-devel] Query for entry type iradio does not returns a single char (by song does)
- Date: Mon, 27 Dec 2010 20:16:24 +0100
Hi there, i've created a rhythmbox plugin to handle it via web (you can find it
here) 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>
<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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]