list-fetch
Advanced tools
Comparing version 27.0.8 to 27.0.9
@@ -134,8 +134,4 @@ module.exports = async function makeBTFetch (opts = {}) { | ||
if (reqHeaders.has('x-copy') || searchParams.has('x-copy')) { | ||
try { | ||
const torrentData = await app.userTorrent(mid.mainId, mid.mainPath, {...useOpts, id: JSON.parse(reqHeaders.get('x-copy') || searchParams.get('x-copy'))}) | ||
return sendTheData(signal, {status: 200, headers: {'X-Path': torrentData}, body: ''}) | ||
} catch (error) { | ||
return sendTheData(signal, {status: 400, headers: {'X-Error': error.name}, body: ''}) | ||
} | ||
const torrentData = await app.userTorrent(mid.mainId, mid.mainPath, { ...useOpts, id: JSON.parse(reqHeaders.get('x-copy') || searchParams.get('x-copy')) }) | ||
return sendTheData(signal, { status: 200, headers: { 'X-Path': torrentData }, body: '' }) | ||
} else { | ||
@@ -142,0 +138,0 @@ const torrentData = await app.loadTorrent(mid.mainId, mid.mainPath, useOpts) |
{ | ||
"name": "list-fetch", | ||
"version": "27.0.8", | ||
"version": "27.0.9", | ||
"description": "coming soon", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"range-parser": "^1.2.1", | ||
"torrentz": "^9.0.8" | ||
"torrentz": "^9.0.9" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
20400
305
Updatedtorrentz@^9.0.9