feat: add to blacklist if torrent has no video file

This commit is contained in:
Simon Ding
2025-09-15 20:17:40 +08:00
parent 468b1c79a3
commit 340c1cdc57
3 changed files with 36 additions and 1 deletions

16
pkg/storage/base_test.go Normal file
View File

@@ -0,0 +1,16 @@
package storage
import (
"testing"
"github.com/pkg/errors"
)
func TestError(t *testing.T) {
err := &NoVideoFileError{Path: "/some/path"}
if errors.Is(err, &NoVideoFileError{}) {
t.Log("is NoVideoFileError")
} else {
t.Error("not match")
}
}