Skip to content

Commit

Permalink
fix(plaxt): scrobble if buffering over 90%
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyXiang committed Mar 8, 2022
1 parent 3f1e437 commit 58585f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler/plex.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ func (c *PlexClient) syncTimelineWithPlaxt(r *http.Request) {
} else {
event = webhookEventPlay
}
case "buffering":
if progress >= watchedThreshold && session.status == sessionPlaying {
event = webhookEventScrobble
}
case "paused":
if progress >= watchedThreshold && session.status == sessionPlaying {
event = webhookEventScrobble
Expand Down

0 comments on commit 58585f0

Please sign in to comment.