Skip to content

If torrent queue error raised #44

@UnleashTheCode

Description

@UnleashTheCode

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}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions