[scraper] updates 1337x search api to extend results

This commit is contained in:
TheBeastLT
2020-04-25 10:29:10 +02:00
parent 43c2e737f8
commit 10615e4aed
2 changed files with 13 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ async function processTorrentRecord(record) {
infoHash: torrentFound.infoHash,
provider: NAME,
torrentId: torrentFound.torrentId,
title: torrentFound.name.replace(/\t|\s+/g, ' '),
title: torrentFound.name.replace(/\t|\s+/g, ' ').trim(),
type: TYPE_MAPPING[torrentFound.category],
size: torrentFound.size,
seeders: torrentFound.seeders,