mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-03 04:26:36 +08:00
fix: reduce emby load and stabilize strm scan
This commit is contained in:
@@ -92,6 +92,14 @@ func TestScanCloudLibraryImportsRecursivePlayableMedia(t *testing.T) {
|
||||
t.Fatalf("root media path/strm wrong: path=%q strm=%q", rows[0].Path, rows[0].STRMURL)
|
||||
}
|
||||
|
||||
res, err = scanner.ScanLibrary(t.Context(), lib.ID)
|
||||
if err != nil {
|
||||
t.Fatalf("rescan same cloud: %v", err)
|
||||
}
|
||||
if res.Added != 0 || res.Updated != 2 {
|
||||
t.Fatalf("same cloud rescan should update existing rows only, got %#v", res)
|
||||
}
|
||||
|
||||
empty = true
|
||||
res, err = scanner.ScanLibrary(t.Context(), lib.ID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user