try more things that don't work

This commit is contained in:
random() 2024-12-02 10:13:35 -07:00
parent 4954fd7896
commit ca561f9940
10 changed files with 8 additions and 5 deletions

View file

@ -24,7 +24,7 @@
"RelativeDocumentMoniker": "JellyfinDiscordRPC\\Program.cs",
"ToolTip": "C:\\Users\\random()\\RiderProjects\\jellyfin-discord-rpc\\JellyfinDiscordRPC\\Program.cs*",
"RelativeToolTip": "JellyfinDiscordRPC\\Program.cs*",
"ViewState": "AgIAAF0AAAAwm5mZmZklwGMAAAAcAAAAAAAAAA==",
"ViewState": "AgIAAL0AAAAANjMzMzMawNsAAABZAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-11-30T22:21:56.575Z",
"EditorCaption": ""

View file

@ -24,7 +24,7 @@
"RelativeDocumentMoniker": "JellyfinDiscordRPC\\Program.cs",
"ToolTip": "C:\\Users\\random()\\RiderProjects\\jellyfin-discord-rpc\\JellyfinDiscordRPC\\Program.cs*",
"RelativeToolTip": "JellyfinDiscordRPC\\Program.cs*",
"ViewState": "AgIAAF0AAAAwm5mZmZklwGQAAAA2AAAAAAAAAA==",
"ViewState": "AgIAAMMAAAAAzMzMzMwFwNsAAABPAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-11-30T22:21:56.575Z",
"EditorCaption": ""

View file

@ -214,7 +214,10 @@ class Program
Duration = TimeSpan.FromTicks((long)nowPlaying["RunTimeTicks"]),
IsMusic = isMusic,
NowPlayingItem = nowPlaying,
EndDate = DateTime.UtcNow + TimeSpan.FromTicks((long)nowPlaying["RunTimeTicks"]) // Calculating end date based on duration // no you aren't, this shit doesn't work (stop using the fucking AI diamond!)
// EndDate = DateTime.UtcNow + TimeSpan.FromTicks((long)nowPlaying["RunTimeTicks"]) // Calculating end date based on duration // no you aren't, this shit doesn't work (stop using the fucking AI diamond!)
// EndDate = new DateTime((long)nowPlaying["RunTimeTicks"]) // this looks like it *should* work but it doesn't (somehow makes it *worse*?)
// DateTime EndDate = new DateTime((long)nowPlaying["RunTimeTicks"]) // everyone suggests this but you can't do it this way
// EndDate = DateTime.FromFileTime((long)nowPlaying["RunTimeTicks"]) // ..this also breaks things like the other way that should work? beginning to think that there's something wrong with the DiscordRPC implementation..
};
}
}

View file

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("JellyfinDiscordRPC")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2a2689bfb796e7c7505d635e8c71767ab2f9dd3c")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+4954fd7896ae7558c2734d4a550069fe9b168202")]
[assembly: System.Reflection.AssemblyProductAttribute("JellyfinDiscordRPC")]
[assembly: System.Reflection.AssemblyTitleAttribute("JellyfinDiscordRPC")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View file

@ -1 +1 @@
c40b6ae056b22d95c6fbf122f6bbab2d5d86aefbcbd9692e40c3bac8d3dabab6
509eac63d3c89a1f5fa1391c040dc16a386ce242f6a3317588056e11f108ee64