mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-25 04:19:15 -05:00
Fix for null title/artist/album/genre in wma files
This commit is contained in:
parent
b928966f9b
commit
4e786208ed
@ -756,6 +756,21 @@ void make_composite_tags(MP3FILE *song) {
|
|||||||
char *sep = " - ";
|
char *sep = " - ";
|
||||||
char *va_artist = "Various Artists";
|
char *va_artist = "Various Artists";
|
||||||
|
|
||||||
|
if(song->genre && (strlen(song->genre) == 0)) {
|
||||||
|
free(song->genre);
|
||||||
|
song->genre = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(song->artist && (strlen(song->artist) == 0)) {
|
||||||
|
free(song->artist);
|
||||||
|
song->artist = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(song->title && (strlen(song->title) == 0)) {
|
||||||
|
free(song->title);
|
||||||
|
song->title = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if(!song->artist) {
|
if(!song->artist) {
|
||||||
if (song->orchestra && song->conductor) {
|
if (song->orchestra && song->conductor) {
|
||||||
len = (int)strlen(song->orchestra) +
|
len = (int)strlen(song->orchestra) +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user