[scraper] update yts torrent id format

This commit is contained in:
TheBeastLT
2021-03-11 23:27:57 +01:00
parent 34879962ee
commit 00d3ee2fd5

View File

@@ -69,7 +69,7 @@ function parseResults(results) {
function parseMovie(movie) {
return movie.torrents.map(torrent => ({
name: `${movie.title} ${movie.year} ${torrent.quality} ${formatType(torrent.type)} `,
torrentId: movie.id,
torrentId: `${movie.id}-${torrent.hash.trim().toLowerCase()}`,
infoHash: torrent.hash.trim().toLowerCase(),
torrentLink: torrent.url,
seeders: torrent.seeds,