[scraper] fixes horriblesubs spread operator object
This commit is contained in:
@@ -204,7 +204,7 @@ async function checkIfExists(torrent) {
|
|||||||
} else if (existingTorrent.provider === NAME) {
|
} else if (existingTorrent.provider === NAME) {
|
||||||
return undefined; // torrent by this provider already exists
|
return undefined; // torrent by this provider already exists
|
||||||
}
|
}
|
||||||
return { ...torrent.get(), size: existingTorrent.size, seeders: existingTorrent.seeders };
|
return { ...torrent, size: existingTorrent.size, seeders: existingTorrent.seeders };
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { scrape, NAME };
|
module.exports = { scrape, NAME };
|
||||||
Reference in New Issue
Block a user