CC-4242: MP3 streams have the artist name duplicated
-fixed
This commit is contained in:
parent
68c401b296
commit
831a1b1923
|
@ -7,11 +7,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
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ just_switched = ref false
|
|||
%include "ls_lib.liq"
|
||||
|
||||
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)
|
||||
ignore(output.dummy(queue, fallible=true))
|
||||
|
|
Loading…
Reference in New Issue