diff --git a/.vs/JellyfinDiscordRPC/FileContentIndex/5c63eb47-878c-4bec-9310-d060b026e5f3.vsidx b/.vs/JellyfinDiscordRPC/FileContentIndex/5c63eb47-878c-4bec-9310-d060b026e5f3.vsidx new file mode 100644 index 0000000..fa64053 Binary files /dev/null and b/.vs/JellyfinDiscordRPC/FileContentIndex/5c63eb47-878c-4bec-9310-d060b026e5f3.vsidx differ diff --git a/.vs/JellyfinDiscordRPC/FileContentIndex/8fd518a7-0ec4-470d-a16d-7571b1300882.vsidx b/.vs/JellyfinDiscordRPC/FileContentIndex/8fd518a7-0ec4-470d-a16d-7571b1300882.vsidx deleted file mode 100644 index 0a7f98a..0000000 Binary files a/.vs/JellyfinDiscordRPC/FileContentIndex/8fd518a7-0ec4-470d-a16d-7571b1300882.vsidx and /dev/null differ diff --git a/.vs/JellyfinDiscordRPC/v17/.futdcache.v2 b/.vs/JellyfinDiscordRPC/v17/.futdcache.v2 index f86f461..4a8e466 100644 Binary files a/.vs/JellyfinDiscordRPC/v17/.futdcache.v2 and b/.vs/JellyfinDiscordRPC/v17/.futdcache.v2 differ diff --git a/.vs/JellyfinDiscordRPC/v17/DocumentLayout.backup.json b/.vs/JellyfinDiscordRPC/v17/DocumentLayout.backup.json index 7f04023..f7a4958 100644 --- a/.vs/JellyfinDiscordRPC/v17/DocumentLayout.backup.json +++ b/.vs/JellyfinDiscordRPC/v17/DocumentLayout.backup.json @@ -24,7 +24,7 @@ "RelativeDocumentMoniker": "JellyfinDiscordRPC\\Program.cs", "ToolTip": "C:\\Users\\joshua\\Documents\\GitHub\\jellyfin-discord-rpc\\JellyfinDiscordRPC\\Program.cs", "RelativeToolTip": "JellyfinDiscordRPC\\Program.cs", - "ViewState": "AgIAAAcAAAAAAAAAAAAAABQAAAApAAAAAAAAAA==", + "ViewState": "AgIAACcAAAAAAAAAAADwv0UAAAAnAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2024-11-30T05:30:39.706Z", "EditorCaption": "" diff --git a/.vs/JellyfinDiscordRPC/v17/DocumentLayout.json b/.vs/JellyfinDiscordRPC/v17/DocumentLayout.json index 7f04023..5c195c1 100644 --- a/.vs/JellyfinDiscordRPC/v17/DocumentLayout.json +++ b/.vs/JellyfinDiscordRPC/v17/DocumentLayout.json @@ -24,7 +24,7 @@ "RelativeDocumentMoniker": "JellyfinDiscordRPC\\Program.cs", "ToolTip": "C:\\Users\\joshua\\Documents\\GitHub\\jellyfin-discord-rpc\\JellyfinDiscordRPC\\Program.cs", "RelativeToolTip": "JellyfinDiscordRPC\\Program.cs", - "ViewState": "AgIAAAcAAAAAAAAAAAAAABQAAAApAAAAAAAAAA==", + "ViewState": "AgIAADkAAAAAAAAAAADwv0IAAAA/AAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2024-11-30T05:30:39.706Z", "EditorCaption": "" diff --git a/JellyfinDiscordRPC/Program.cs b/JellyfinDiscordRPC/Program.cs index 4f710ac..13d2b02 100644 --- a/JellyfinDiscordRPC/Program.cs +++ b/JellyfinDiscordRPC/Program.cs @@ -14,7 +14,7 @@ class Program private static bool isScreenSharing = false; // Track screen sharing status // Hard-code the Discord Client ID here - private const string DiscordClientId = "1312264302601834578"; // Replace with your actual Discord client ID + private const string DiscordClientId = "1312264302601834578"; // Discord client ID static async Task Main(string[] args) { @@ -56,9 +56,9 @@ class Program string details = playingInfo.IsMusic ? $"{playingInfo.Title}" // Show song name - : $"Watching: {playingInfo.Title}"; // Show video title + : $"Watching: {nowPlaying["SeriesName"]?.ToString() ?? "Unknown Series"} - {playingInfo.Title}"; // Show series and episode name - string state = isScreenSharing ? "Sharing screen" : playingInfo.IsMusic + string state = playingInfo.IsMusic ? $"{playingInfo.Artist}" // Show artist name : $"Season {playingInfo.Season}, Episode {playingInfo.Episode}"; @@ -67,7 +67,7 @@ class Program _discordClient.SetPresence(new RichPresence { Details = details, - State = state, // Dynamic state based on screen sharing or media + State = state, Timestamps = new Timestamps { Start = DateTime.UtcNow - playingInfo.Progress,