We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 932a633 commit 3aa93a2Copy full SHA for 3aa93a2
src/deluge.ts
@@ -255,7 +255,8 @@ export class Deluge implements TorrentClient {
255
config: Partial<AddTorrentOptions> = {},
256
): Promise<AddTorrentResponse> {
257
let path: string;
258
- if (isUint8Array(torrent) || !torrent.startsWith('/tmp/')) {
+ // Example temp path: /run/deluged-temp/delugeweb-s0jy917j/ubuntu-20.10-desktop-amd64.iso.torrent
259
+ if (isUint8Array(torrent) || !torrent.startsWith('/tmp/') || torrent.includes('deluged-temp')) {
260
const upload = await this.upload(torrent);
261
if (!upload.success || !upload.files.length) {
262
throw new Error('Failed to upload');
0 commit comments