File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -255,16 +255,19 @@ export class Deluge implements TorrentClient {
255
255
config : Partial < AddTorrentOptions > = { } ,
256
256
) : Promise < AddTorrentResponse > {
257
257
let path : string ;
258
- // Example temp path: /run/deluged-temp/delugeweb-s0jy917j/ubuntu-20.10-desktop-amd64.iso.torrent
259
258
if ( isUint8Array ( torrent ) || ! torrent . startsWith ( '/tmp/' ) || ! torrent . includes ( 'delugeweb-' ) ) {
259
+ console . log ( { torrent } ) ;
260
260
const upload = await this . upload ( torrent ) ;
261
261
if ( ! upload . success || ! upload . files . length ) {
262
262
throw new Error ( 'Failed to upload' ) ;
263
263
}
264
264
265
265
path = upload . files [ 0 ] ;
266
266
} else {
267
- /** Assume paths starting with /tmp/ are from {@link Deluge.addTorrent} */
267
+ /**
268
+ * Assume paths starting with /tmp/ are from {@link Deluge.addTorrent}
269
+ * Example temp path: /run/deluged-temp/delugeweb-s0jy917j/ubuntu-20.10-desktop-amd64.iso.torrent
270
+ */
268
271
path = torrent ;
269
272
}
270
273
You can’t perform that action at this time.
0 commit comments