[scraper] exclude nyaasi torrents from seeders query

This commit is contained in:
TheBeastLT
2020-12-02 17:58:07 +01:00
parent cdb221a2cd
commit 5b82ac33be

View File

@@ -186,7 +186,7 @@ function getTorrentsWithoutSize() {
function getUpdateSeedersTorrents() {
const until = moment().subtract(7, 'days').format('YYYY-MM-DD');
return Torrent.findAll({
where: literal(`torrent."updatedAt" < \'${until}\'`),
where: literal(`torrent."updatedAt" < \'${until}\' and torrent."provider" not in (\'NyaaSi\')`),
limit: 100,
order: [
['seeders', 'DESC'],