[scraper] fixes 1337x size parsing

This commit is contained in:
TheBeastLT
2020-03-15 11:54:55 +01:00
parent 03d37918cd
commit e904dea5e6

View File

@@ -153,7 +153,7 @@ function parseSize(sizeText) {
} else if (sizeText.includes('KB')) {
scale = 1024;
}
return Math.floor(parseFloat(sizeText) * scale);
return Math.floor(parseFloat(sizeText.replace(/,/g, '')) * scale);
}
module.exports = { torrent, search, browse, Categories };