Clarify no-download queue failures

This commit is contained in:
Dymas
2026-05-25 23:13:41 +02:00
parent 94ded2725e
commit 1f50c3c666
6 changed files with 37 additions and 4 deletions
+8 -1
View File
@@ -1124,7 +1124,14 @@ class DownloadQueue:
job.setdefault("log", []).append("Canceled.")
elif finalize_error:
job["status"] = "failed"
job.setdefault("log", []).append(f"Library rename failed: {finalize_error}")
message = str(finalize_error).strip()
if "No downloaded files were found in the staging folder" in message:
job.setdefault("log", []).append(
"ani-cli exited without downloading any files. The selected result or episodes may not be downloadable."
)
else:
job.setdefault("log", []).append(f"Library rename failed: {finalize_error}")
cleanup_staging = True
elif exit_code == 0:
job["status"] = "done"
for path in moved_files: