Compare commits
No commits in common. "0e2fa5f81a388c661dfbb31ac468061eab1430c9" and "b1a3d2685ca3475683036220bac5600103f4c2ce" have entirely different histories.
0e2fa5f81a
...
b1a3d2685c
@ -153,15 +153,6 @@ public class DisMediaRP : IDisposable
|
|||||||
|
|
||||||
this._currentStatus.State = string.Join(' ', repeatMode, shuffle, $"{timelineProperties.Position:hh\\:mm\\:ss}/{timelineProperties.EndTime:hh\\:mm\\:ss}");
|
this._currentStatus.State = string.Join(' ', repeatMode, shuffle, $"{timelineProperties.Position:hh\\:mm\\:ss}/{timelineProperties.EndTime:hh\\:mm\\:ss}");
|
||||||
|
|
||||||
if (mediaSession.ControlSession.GetPlaybackInfo().PlaybackStatus is
|
|
||||||
GlobalSystemMediaTransportControlsSessionPlaybackStatus.Playing)
|
|
||||||
this._currentStatus.Timestamps = new Timestamps()
|
|
||||||
{
|
|
||||||
End = DateTime.UtcNow.Add(timelineProperties.EndTime - timelineProperties.Position)
|
|
||||||
};
|
|
||||||
else
|
|
||||||
this._currentStatus.Timestamps = new Timestamps();
|
|
||||||
|
|
||||||
this._discordRpcClient.SetPresence(this._currentStatus);
|
this._discordRpcClient.SetPresence(this._currentStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ else
|
|||||||
throw new ArgumentNullException(nameof(discordKey));
|
throw new ArgumentNullException(nameof(discordKey));
|
||||||
|
|
||||||
int imageKeyIndex = Array.IndexOf(args, "-i");
|
int imageKeyIndex = Array.IndexOf(args, "-i");
|
||||||
string imageKey = "cat";
|
string? imageKey = null;
|
||||||
if(imageKeyIndex > -1)
|
if(imageKeyIndex > -1)
|
||||||
if (imageKeyIndex + 1 < args.Length)
|
if (imageKeyIndex + 1 < args.Length)
|
||||||
imageKey = args[imageKeyIndex + 1];
|
imageKey = args[imageKeyIndex + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user