Hi
I use the Audioscrobbler Plugin and discoverd a bug:
If a randomized entry is beeing played, foo_audioscrobbler dous not detect the song informations
picked file - "D:\Media\Musik - Neu\Guns 'N Roses\Appetite For Destruction\Guns 'N Roses - Sweet Child O Mine.mp3"
Track has null info - not submitting.
The code:
void store_track_info(file_info_i_full * info) {
const char *a = info->meta_get("artist");
const char *t = info->meta_get("title");
const char *l = info->meta_get("album");
const char *m = info->meta_get("MUSICBRAINZ_TRACKID");
if (a == NULL || t == NULL) {
console::info("Track has null info - not submitting.");
return;
}
time(&starttime);
artist = a;
title = t;
if (l != NULL) {
album = l;
} else {
album = "";
}
if (m != NULL) {
sprintf(mbid, "%-37s", m);
} else {
memcpy(mbid, "\0", sizeof(mbid));
}
length = info->get_length();
}
THe files can be found here:
http://cvs.sourceforge.net/viewcvs.py/audi...audioscrobbler/
I tryed to compile it myself, but i neither got VC++ (i am using devcpp) and downloading the free vrsion dous take a bit long with ISDN (8kb/s)
I think there are just a few changes needed in this part of the code..
Maybee s.o. who got everything needed could fix and compile this?
I posted this at the last.fm Forums, too, but noone is answereing there for 3 Days
EDIT: I just realised that this is the wrong forum :/
could a mod plz move it to 3rd Party Plugins - (fb2k) ?
--Ano