File tree 2 files changed +1
-2
lines changed
2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ export class Deluge implements TorrentClient {
256
256
) : Promise < AddTorrentResponse > {
257
257
let path : string ;
258
258
// 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- ' ) ) {
260
260
const upload = await this . upload ( torrent ) ;
261
261
if ( ! upload . success || ! upload . files . length ) {
262
262
throw new Error ( 'Failed to upload' ) ;
Original file line number Diff line number Diff line change @@ -311,7 +311,6 @@ it('should download from url', async () => {
311
311
const result = await client . downloadFromUrl (
312
312
'https://releases.ubuntu.com/20.10/ubuntu-20.10-desktop-amd64.iso.torrent' ,
313
313
) ;
314
- console . log ( result ) ;
315
314
// Should be a file path but it is different on different systems
316
315
expect ( result ) . toContain ( '/' ) ;
317
316
await client . addTorrent ( result , { add_paused : true } ) ;
You can’t perform that action at this time.
0 commit comments