Skip to content

Commit

Permalink
fix: Keep segments in case a video is unpaused
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 20, 2023
1 parent cd44598 commit 9cc43d2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/device/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -144,7 +143,6 @@ func Watch(ctx context.Context, entry castdns.CastEntry) {
}

if castMedia.Media.ContentId == "" {
segments = nil
ticker.Reset(config.PausedIntervalValue)
continue
}
Expand Down

0 comments on commit 9cc43d2

Please sign in to comment.