idfk it doesn't work but doesn't error

This commit is contained in:
random() 2024-11-30 17:05:36 -07:00
parent 6621e56127
commit 7fad3c7b63
19 changed files with 54 additions and 32 deletions

View file

@ -98,8 +98,8 @@ class Program
Timestamps = new Timestamps
{
Start = DateTime.UtcNow - playingInfo.Progress,
End = DateTime.UtcNow + (playingInfo.Duration - playingInfo.Progress)
},
End = playingInfo.EndDate
},
Assets = new Assets
{
LargeImageKey = largeImageKey,
@ -213,7 +213,8 @@ class Program
Progress = TimeSpan.FromTicks((long)session["PlayState"]["PositionTicks"]),
Duration = TimeSpan.FromTicks((long)nowPlaying["RunTimeTicks"]),
IsMusic = isMusic,
NowPlayingItem = nowPlaying
NowPlayingItem = nowPlaying,
EndDate = new DateTime((long)nowPlaying["RunTimeTicks"])
};
}
}
@ -262,4 +263,5 @@ class PlayingInfo
public TimeSpan Duration { get; set; }
public bool IsMusic { get; set; }
public JToken NowPlayingItem { get; set; }
public DateTime EndDate { get; set; }
}