mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-09 04:38:10 -05:00
Minor ogg fixups
This commit is contained in:
parent
4dd995db1c
commit
9976d7b2cf
@ -1687,6 +1687,7 @@ int scan_get_mp3fileinfo(char *file, MP3FILE *pmp3) {
|
|||||||
void make_composite_tags(MP3FILE *song)
|
void make_composite_tags(MP3FILE *song)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
char fdescr[50];
|
||||||
|
|
||||||
len=0;
|
len=0;
|
||||||
|
|
||||||
@ -1711,14 +1712,8 @@ void make_composite_tags(MP3FILE *song)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!strcasecmp(song->type,"ogg")) {
|
sprintf(fdescr,"%s audio file",song->type);
|
||||||
song->description = strdup("QuickTime movie file");
|
song->description = strdup(fdescr);
|
||||||
} else {
|
|
||||||
char fdescr[50];
|
|
||||||
|
|
||||||
sprintf(fdescr,"%s audio file",song->type);
|
|
||||||
song->description = strdup(fdescr);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(song->url) {
|
if(song->url) {
|
||||||
song->description = strdup("Playlist URL");
|
song->description = strdup("Playlist URL");
|
||||||
@ -1734,10 +1729,6 @@ void make_composite_tags(MP3FILE *song)
|
|||||||
if(!song->title)
|
if(!song->title)
|
||||||
song->title = strdup(song->fname);
|
song->title = strdup(song->fname);
|
||||||
|
|
||||||
/* PENDING: treat ogg just like any audio file? Doing so allows it
|
/* Ogg used to be set as an item_kind of 4. Dunno why */
|
||||||
to show up in iTunes but it still can't be streamed. */
|
song->item_kind = 2;
|
||||||
/*if(!strcmp(song->type, "ogg"))
|
|
||||||
song->item_kind = 4;
|
|
||||||
else*/
|
|
||||||
song->item_kind = 2;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user