CC-4242: MP3 streams have the artist name duplicated
-fixed
This commit is contained in:
parent
0cbd6165c4
commit
50b7597e28
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue