From b1a3d2685ca3475683036220bac5600103f4c2ce Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 22 Feb 2024 05:52:55 +0100 Subject: [PATCH] simple interpolation --- DiscordMediaRP/DisMediaRP.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordMediaRP/DisMediaRP.cs b/DiscordMediaRP/DisMediaRP.cs index 6c12f91..a95aa07 100644 --- a/DiscordMediaRP/DisMediaRP.cs +++ b/DiscordMediaRP/DisMediaRP.cs @@ -151,7 +151,7 @@ public class DisMediaRP : IDisposable string? shuffle = (playbackInfo.IsShuffleActive ?? false) ? "\ud83d\udd00" : null; - this._currentStatus.State = string.Join(' ', repeatMode, shuffle, $"{timelineProperties.Position.ToString(@"hh\:mm\:ss")}/{timelineProperties.EndTime.ToString(@"hh\:mm\:ss")}"); + this._currentStatus.State = string.Join(' ', repeatMode, shuffle, $"{timelineProperties.Position:hh\\:mm\\:ss}/{timelineProperties.EndTime:hh\\:mm\\:ss}"); this._discordRpcClient.SetPresence(this._currentStatus); }