Treat manual storage as Importarr-owned

Use SAB storage under the configured download root as ownership even when SAB reports category '*'.
This commit is contained in:
2026-07-29 15:12:04 +02:00
parent 22a1fc5522
commit ce82a405c5
4 changed files with 32 additions and 14 deletions
+6
View File
@@ -19,6 +19,12 @@ def test_completed_manual_is_ready():
def test_wrong_category_ignored():
result = classify_history_item(item(category="*"), set(), "manual", ROOT)
assert result.ready
assert result.reason == "SAB completed inside Importarr download root"
def test_wrong_category_outside_root_ignored():
result = classify_history_item(item(category="*", storage="/tmp/other/Movie"), set(), "manual", ROOT)
assert result.state == "ignored"