Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If torrent queue error raised #44

Open
UnleashTheCode opened this issue Dec 22, 2024 · 1 comment
Open

If torrent queue error raised #44

UnleashTheCode opened this issue Dec 22, 2024 · 1 comment

Comments

@UnleashTheCode
Copy link

If a torrent is in queue, it returns no torrent_id.

Torbox is used.

blackhole_service  |   File "/app/blackhole.py", line 295, in processFile
blackhole_service  |     results = await asyncio.gather(*(processTorrent(torrent, file, arr) for torrent in torrents))
blackhole_service  |   File "/app/blackhole.py", line 146, in processTorrent
blackhole_service  |     if not torrent.submitTorrent():
blackhole_service  |   File "/app/shared/debrid.py", line 362, in submitTorrent
blackhole_service  |     if self.addTorrent():
blackhole_service  |   File "/app/shared/debrid.py", line 515, in addTorrent
blackhole_service  |     return self._addMagnetFile()
blackhole_service  |   File "/app/shared/debrid.py", line 477, in _addMagnetFile
blackhole_service  |     return self._addFile(data={'magnet': self.fileData})
blackhole_service  |   File "/app/shared/debrid.py", line 467, in _addFile
blackhole_service  |     self.id = response['data']['torrent_id']
blackhole_service  | KeyError: 'torrent_id'
blackhole_service  |

It returns a queue_id.

response info: {'success': True, 'detail': 'Torrent queued successfully.', 'data': {'hash': '<redacted>', 'name': '<Redacted>', 'queued_id': 211386}}
@UnleashTheCode
Copy link
Author

Also, if a torrent is in processing I think the same is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant