From f4c819abcd7c5b0c281a21ba850347560fa007d2 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 21 Nov 2017 08:29:16 -0600 Subject: [PATCH] Removed broken trailing character in song details --- mb_DiscordRichPresence.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mb_DiscordRichPresence.cs b/mb_DiscordRichPresence.cs index 05a8f8d..bd3a3be 100644 --- a/mb_DiscordRichPresence.cs +++ b/mb_DiscordRichPresence.cs @@ -54,7 +54,8 @@ private void UpdatePresence(string song, string duration, int position, string s { DiscordRPC.RichPresence presence = new DiscordRPC.RichPresence(); presence.state = state; - presence.details = Utility.Utf16ToUtf8(song); + song = Utility.Utf16ToUtf8(song); + presence.details = song.Substring(0, song.Length - 1); presence.largeImageKey = "musicbee"; long now = (long)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds; presence.startTimestamp = now - position;