Make empty_strings dummy up artist, genre, and album

This commit is contained in:
Ron Pedde 2006-09-10 19:27:55 +00:00
parent ccf2cb4a0f
commit 19b8b3719c

View File

@ -792,14 +792,19 @@ void make_composite_tags(MP3FILE *song) {
} }
} }
/* verify we have tags for the big 4 */
if(conf_get_int("daap","empty_strings",0)) {
if(!song->artist) song->artist = strdup("Unknown");
if(!song->album) song->album = strdup("Unknown");
if(!song->genre) song->genre = strdup("Unknown");
}
if(!song->title) song->title = strdup(song->fname);
if(song->url) if(song->url)
song->data_kind=1; song->data_kind=1;
else else
song->data_kind=0; song->data_kind=0;
if(!song->title)
song->title = strdup(song->fname);
song->item_kind = 2; /* music, I think. */ song->item_kind = 2; /* music, I think. */
} }