idfk it doesn't work but doesn't error
This commit is contained in:
parent
6621e56127
commit
7fad3c7b63
19 changed files with 54 additions and 32 deletions
|
@ -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; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue