mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-24 11:59:16 -05:00
Make empty_strings dummy up artist, genre, and album
This commit is contained in:
parent
ccf2cb4a0f
commit
19b8b3719c
@ -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. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user