Merge pull request #146 from DSheirer/140-icecast-metadata-updater-url-encoding

Resolves #140 issue with updating metadata on Icecast2 servers
This commit is contained in:
Denny Sheirer
2017-01-28 11:17:16 -05:00
committed by GitHub

View File

@@ -235,7 +235,7 @@ public class IcecastBroadcastMetadataUpdater implements IBroadcastMetadataUpdate
{
StringBuilder sb = new StringBuilder();
sb.append("mode=updinfo");
sb.append("&mount=").append(mIcecastConfiguration.getMountPoint());
sb.append("&mount=").append(URLEncoder.encode(mIcecastConfiguration.getMountPoint(), UTF8));
sb.append("&charset=UTF%2d8");
sb.append("&song=").append(URLEncoder.encode(song, UTF8));