From 9cc43d2291b7bddc44ed6f5676f26ecbdeca820b Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sun, 20 Aug 2023 16:12:51 -0500 Subject: [PATCH] fix: Keep segments in case a video is unpaused --- internal/device/watch.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/device/watch.go b/internal/device/watch.go index 0462f10..d8c7537 100644 --- a/internal/device/watch.go +++ b/internal/device/watch.go @@ -111,7 +111,6 @@ func Watch(ctx context.Context, entry castdns.CastEntry) { castApp, castMedia, _ := app.Status() if castApp == nil || castApp.DisplayName != "YouTube" || castMedia == nil || castMedia.PlayerState != "PLAYING" { - segments = nil ticker.Reset(config.PausedIntervalValue) continue } @@ -144,7 +143,6 @@ func Watch(ctx context.Context, entry castdns.CastEntry) { } if castMedia.Media.ContentId == "" { - segments = nil ticker.Reset(config.PausedIntervalValue) continue }