[scraper] adds nyaa si scraper

This commit is contained in:
TheBeastLT
2020-12-01 10:55:34 +01:00
parent 705570de53
commit b4c217f4e7
4 changed files with 164 additions and 1 deletions

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}\' and torrent."provider" not in (\'NyaaSi\')`),
where: literal(`torrent."updatedAt" < \'${until}\'`),
limit: 100,
order: [
['seeders', 'DESC'],