diff options
author | Max Kellermann <max@musicpd.org> | 2019-11-06 16:05:22 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-11-06 16:05:22 +0100 |
commit | 13ce07d181b1ffa8f73ba9734cbc7d72baaaec91 (patch) | |
tree | ec68f0bc9a647838be457c88a89549a648e7cf7e /src | |
parent | d659c7df19d715413bd518b4e2e2b4f550f0a25e (diff) |
output/shout: declare metadata as UTF-8
Apparently, Icecast defaults to ISO-8859-1 for MP3:
http://icecast.org/docs/icecast-2.4.0/config-file.html#mountsettings
This change forces Icecast to UTF-8 without having to configure it in
Icecast's configuration file.
Diffstat (limited to 'src')
-rw-r--r-- | src/output/plugins/ShoutOutputPlugin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output/plugins/ShoutOutputPlugin.cxx b/src/output/plugins/ShoutOutputPlugin.cxx index eec956d2a..659de603f 100644 --- a/src/output/plugins/ShoutOutputPlugin.cxx +++ b/src/output/plugins/ShoutOutputPlugin.cxx @@ -383,6 +383,7 @@ ShoutOutput::SendTag(const Tag &tag) shout_tag_to_metadata(tag, song, sizeof(song)); shout_metadata_add(meta, "song", song); + shout_metadata_add(meta, "charset", "UTF-8"); if (SHOUTERR_SUCCESS != shout_set_metadata(shout_conn, meta)) { LogWarning(shout_output_domain, "error setting shout metadata"); |