Skip to content

Commit

Permalink
Merge pull request #42 from robertRogerPresident/tb-fix
Browse files Browse the repository at this point in the history
Fix Torbox issues
  • Loading branch information
westsurname authored Dec 20, 2024
2 parents 56797f4 + f449d08 commit 7cba287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/debrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7cba287

Please sign in to comment.