Suport for radio/stream data
Submitted by Fabricio
Many internet radios transmit along with their stream the songs artist and album information. This could be used to update the last.fm database of the user.
I was looking for a way to implement this type of feature. Looking at the code for the audioscrobler plugin I found at "rb-audioscrobbler-entry.c" at method "rb_audioscrobbler_entry_create" its executed the queries for information about the entry:
as_entry->title = rhythmdb_entry_dup_string (rb_entry,
RHYTHMDB_PROP_TITLE); as_entry->track = rhythmdb_entry_get_ulong (rb_entry, RHYTHMDB_PROP_TRACK_NUMBER); as_entry->artist = rhythmdb_entry_dup_string (rb_entry, RHYTHMDB_PROP_ARTIST); as_entry->album = rhythmdb_entry_dup_string (rb_entry, RHYTHMDB_PROP_ALBUM);
I'm writing a plugin (for another feature, and in phyton, github.com/nuk/CopyName2Clipboard) that does this trick. I haven't found an way to recompile the audioscrobler (i didn't researched much yet) so I don't have much to offer right now to this question. But I find it a very relevant feature to be added.
PS: I missplaced a comment about this in the Bug 617559