[Rhythmbox-devel] [Plugin Development] How to Manage Entries in the RhythmDB ?



Hi!

I've added the save_to_disk attribute. I couldn't set it from Python.
http://bugzilla.gnome.org/show_bug.cgi?id=534062

I'm trying to add an mp3 file to the database with
shell.get_property("db").entry_new( entry_type, 'file://' +
file_to_add ) 

This does work, but the file is added to the database as <date>0</date>
and <mimetype>application/octet-stream</mimetype>.

I want Rhythmbox to (recognise the file as an mp3 file and) find tags,
and mimetype x-id3... how can I achieve this?

Does rhythmbox find id3 tags in a file automatically, or do I have to do
this manually? If former: How? If latter: are there functions in
Rhythmbox to add the tag information, or what (Python-)library should I
use?

Regards,
Mats Taraldsvik



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