From 945be6066dfab5d2583ee0d7f5a8086168291e19 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sun, 11 Feb 2024 18:21:27 +0100 Subject: [PATCH] Adjust unplayable check --- internal/torrent/refresh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/torrent/refresh.go b/internal/torrent/refresh.go index 071feb9..5d02b36 100644 --- a/internal/torrent/refresh.go +++ b/internal/torrent/refresh.go @@ -331,7 +331,7 @@ func (t *TorrentManager) assignedDirectoryCb(tor *Torrent, cb func(string)) { tor.SelectedFiles.IterCb(func(key string, file *File) { filenames = append(filenames, filepath.Base(file.Path)) fileSizes = append(fileSizes, file.Bytes) - if unplayable && (utils.IsPlayable(file.Path) || t.IsPlayable(file.Path)) { + if utils.IsPlayable(file.Path) || t.IsPlayable(file.Path) { unplayable = false } })