Reset album_artist after iTunes scan if set to Unknown artist.

This commit is contained in:
Julien BLACHE 2010-12-18 19:29:26 +01:00
parent c92c8aae25
commit da0d118de4

View File

@ -427,6 +427,15 @@ process_track_file(plist_t trk, char *base)
} }
} }
/* Don't let album_artist set to "Unknown artist" if we've
* filled artist from the iTunes data in the meantime
*/
if (strcmp(mfi->album_artist, "Unknown artist") == 0)
{
free(mfi->album_artist);
mfi->album_artist = strdup(mfi->artist);
}
unicode_fixup_mfi(mfi); unicode_fixup_mfi(mfi);
db_file_update(mfi); db_file_update(mfi);