It's working now, thanks a lot.
On Dec 27, 2010 9:34 PM, "Jonathan Matthew" <[email protected]> wrote: > On Tue, Dec 28, 2010 at 5:16 AM, Pablo Carranza <[email protected]> wrote: >> 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 > > query_model.get_size() returns the total _file size_ for all the > entries in the query model. For radio streams, the file size is set to > 0, so this is exactly what you'd expect to get. > _______________________________________________ > rhythmbox-devel mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
_______________________________________________ rhythmbox-devel mailing list [email protected] http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
