CC-4242: MP3 streams have the artist name duplicated

-fixed
This commit is contained in:
Martin Konecny 2012-08-16 23:49:37 -04:00
parent 0cbd6165c4
commit 50b7597e28
2 changed files with 4 additions and 4 deletions

View File

@ -16,11 +16,11 @@ end
def append_title(m) =
log("Using stream_format #{!stream_metadata_type}")
if !stream_metadata_type == 1 then
[("artist","#{!show_name} - #{m['artist']}")]
[("title", "#{!show_name} - #{m['artist']}")]
elsif !stream_metadata_type == 2 then
[("artist",!station_name), ("title", !show_name)]
[("title", "#{!station_name} - #{!show_name}")]
else
[]
[("title", "#{m['artist']} - #{m['title']}")]
end
end

View File

@ -43,7 +43,7 @@ web_stream = mksafe(input.harbor("test-harbor", port=8999, password="hackme"))
web_stream = on_metadata(notify_stream, web_stream)
queue = on_metadata(notify, queue)
queue = map_metadata(append_title, queue)
queue = map_metadata(update=false, append_title, queue)
# the crossfade function controls fade in/out
queue = crossfade(queue)