Merge pull request #456 from expert-geeks/patch-1

Stop ShoutCAST rejecting title updates
This commit is contained in:
Lucas Bickel 2018-03-09 16:12:17 +01:00 committed by GitHub
commit 8f27fa573b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,8 +37,12 @@ def append_title(m) =
elsif !stream_metadata_type == 2 then
[("title", "#{!station_name} - #{!show_name}"), ("mapped", "true")]
else
[("title", "#{m['artist']} - #{m['title']}"), ("mapped", "true")]
end
if "#{m['artist']}" == "" then
[("title", "#{m['title']}"), ("mapped", "true")]
else
[("title", "#{m['artist']} - #{m['title']}"), ("mapped", "true")]
end
end
end
end