On Tue, Dec 15, 2009 at 1:04 AM, Jannik Heller <scr...@baseoftrash.de> wrote: > Am Montag, den 14.12.2009, 11:55 +1000 schrieb Jonathan Matthew: >> > So how to import the RBIRadioSource that I can access it? Or does >> > someone know another way to get the Radio source? >> >> You'd have to check the source name or maybe its entry type. > That's what I tried at first. But it seems the "name" Property is > translated in the user's language, so that won't work with all > languages. Currently I'm using a workaround, importing the Rhythmbox > translation file and comparing the Radio translation to the name > property.
Here's a better approach: shell.guess_source_for_uri("mms://x") This would be better again, but it doesn't work yet: entrytype = db.entry_type_get_by_name("iradio") source = shell.get_source_by_entry_type(entrytype) _______________________________________________ rhythmbox-devel mailing list rhythmbox-devel@gnome.org http://mail.gnome.org/mailman/listinfo/rhythmbox-devel