Re: [Rhythmbox-devel] Query for entry type iradio does not returns a single char (by song does)



On Tue, Dec 28, 2010 at 5:16 AM, Pablo Carranza <pcarranza gmail com> 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.


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