From f449d08d1ae599f4a834737bd24e48027088a9a7 Mon Sep 17 00:00:00 2001 From: Tangui Date: Mon, 16 Dec 2024 21:44:12 +0100 Subject: [PATCH] fix torbox --- shared/debrid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/debrid.py b/shared/debrid.py index f9260a0..20cb95d 100644 --- a/shared/debrid.py +++ b/shared/debrid.py @@ -439,7 +439,7 @@ def delete(self): return not not deleteRequest async def getTorrentPath(self): - filename = (await self.getInfo())['name'] + filename = (await self.getInfo())['files'][0]['name'].split("/")[0] folderPathMountFilenameTorrent = os.path.join(self.mountTorrentsPath, filename) @@ -486,7 +486,7 @@ def _normalize_status(self, status, download_finished): 'queuedDL', 'checkingDL', 'forcedDL', 'checkingResumeData', 'moving' ]: return self.STATUS_DOWNLOADING - elif status in ['error', 'stalledUP', 'stalledDL', 'stalled (no seeds)', 'missingFiles']: + elif status in ['error', 'stalledUP', 'stalledDL', 'stalled (no seeds)', 'missingFiles', 'failed']: return self.STATUS_ERROR return status