Skip to content

Commit 912b906

Browse files
committed
skip delugeweb
1 parent 035e642 commit 912b906

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: src/deluge.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export class Deluge implements TorrentClient {
256256
): Promise<AddTorrentResponse> {
257257
let path: string;
258258
// 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')) {
259+
if (isUint8Array(torrent) || !torrent.startsWith('/tmp/') || !torrent.includes('delugeweb-')) {
260260
const upload = await this.upload(torrent);
261261
if (!upload.success || !upload.files.length) {
262262
throw new Error('Failed to upload');

Diff for: test/index.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ it('should download from url', async () => {
311311
const result = await client.downloadFromUrl(
312312
'https://releases.ubuntu.com/20.10/ubuntu-20.10-desktop-amd64.iso.torrent',
313313
);
314-
console.log(result);
315314
// Should be a file path but it is different on different systems
316315
expect(result).toContain('/');
317316
await client.addTorrent(result, { add_paused: true });

0 commit comments

Comments
 (0)