add cancelled as accepted status

This commit is contained in:
arabcoders 2025-08-27 17:14:49 +03:00
parent 71bd40a2e8
commit bfe4ea6354

View file

@ -980,7 +980,7 @@ class DownloadQueue(metaclass=Singleton):
self._active[entry.info._id] = entry
await entry.start()
if entry.info.status not in ("finished", "skip"):
if entry.info.status not in ("finished", "skip", "cancelled"):
if not entry.info.error:
entry.info.error = f"Download failed with status '{entry.info.status}'."
entry.info.status = "error"