Re: [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: Re: [Rhythmbox-devel] Query for entry type iradio does not returns a single char (by song does)
- Date: Tue, 28 Dec 2010 00:38:19 +0100
It's working now, thanks a lot.
On Dec 27, 2010 9:34 PM, "Jonathan Matthew" <
jonathan d14n org> wrote:
> 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.
> _______________________________________________
> rhythmbox-devel mailing list
>
rhythmbox-devel gnome org>
http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]