From 35d5710d659d3473569cc2bfa79f34b5666c4822 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Fri, 5 Nov 2004 04:49:37 +0000 Subject: [PATCH] fix .url support for roku, which must have a asfm of pls. Doh. --- src/daap.c | 1 + src/mp3-scanner.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/daap.c b/src/daap.c index 92f123e7..774695ed 100644 --- a/src/daap.c +++ b/src/daap.c @@ -553,6 +553,7 @@ DAAP_BLOCK* daap_add_song_entry(DAAP_BLOCK* mlcl, MP3FILE* song, MetaField_t met /* these quite go hand in hand */ if(wantsMeta(meta, metaSongFormat)) g = g && daap_add_string(mlit,"asfm",song->type); /* song format */ + if(wantsMeta(meta, metaSongDescription)) g = g && daap_add_string(mlit, "asdt",song->description); diff --git a/src/mp3-scanner.c b/src/mp3-scanner.c index d8bb36da..69547e82 100644 --- a/src/mp3-scanner.c +++ b/src/mp3-scanner.c @@ -1311,6 +1311,10 @@ void make_composite_tags(MP3FILE *song) if(song->url) { song->description = strdup("Playlist URL"); song->data_kind=1; + /* bit of a hack for the roku soundbridge - type *has* to be pls */ + if(song->type) + free(song->type); + song->type = strdup("pls"); } else { song->data_kind=0; }