Skip to content

Commit 58585f0

Browse files
committed
fix(plaxt): scrobble if buffering over 90%
1 parent 3f1e437 commit 58585f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

handler/plex.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ func (c *PlexClient) syncTimelineWithPlaxt(r *http.Request) {
327327
} else {
328328
event = webhookEventPlay
329329
}
330+
case "buffering":
331+
if progress >= watchedThreshold && session.status == sessionPlaying {
332+
event = webhookEventScrobble
333+
}
330334
case "paused":
331335
if progress >= watchedThreshold && session.status == sessionPlaying {
332336
event = webhookEventScrobble

0 commit comments

Comments
 (0)