fix .url support for roku, which must have a asfm of pls. Doh.

This commit is contained in:
Ron Pedde 2004-11-05 04:49:37 +00:00
parent 7aec2d1639
commit 35d5710d65
2 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -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;
}