Skip to content

Commit

Permalink
fix: inverse faulty boolean check in scrobble endpoint in APIv3
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Feb 16, 2025
1 parent 985eaf6 commit d7d50ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/API/v3/Controllers/FileController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ public async Task<ActionResult> ScrobbleFileAndEpisode([FromRoute, Range(1, int.
ResumePosition = resumePosition.HasValue
? TimeSpan.FromTicks(playbackPositionTicks)
: (watched.HasValue ? TimeSpan.Zero : null),
LastPlayedAt = !watched.HasValue
LastPlayedAt = watched.HasValue
? (watched.Value ? now : null)
: userData?.LastPlayedAt,
LastUpdatedAt = now,
Expand Down

0 comments on commit d7d50ba

Please sign in to comment.