From 91cae838e1dbf81fbc3aa864e26ac56cbfc59781 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 2 Nov 2023 02:49:32 -0500 Subject: [PATCH] chore(device): Clean up segments before searching --- internal/device/watch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/device/watch.go b/internal/device/watch.go index fe6b570..28b09e4 100644 --- a/internal/device/watch.go +++ b/internal/device/watch.go @@ -330,6 +330,8 @@ func (d *Device) queryVideoId() { d.queryState = QueryStarted d.meta.PrevArtist = d.meta.CurrArtist d.meta.PrevTitle = d.meta.CurrTitle + d.unmuteSegment() + d.segments = nil go func() { if err := util.Retry(d.ctx, 3, time.Second, func(try uint) (err error) { contentId, err := youtube.QueryVideoId(d.ctx, d.meta.CurrArtist, d.meta.CurrTitle)