mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] exclude nyaasi torrents from seeders query
This commit is contained in:
@@ -186,7 +186,7 @@ function getTorrentsWithoutSize() {
|
|||||||
function getUpdateSeedersTorrents() {
|
function getUpdateSeedersTorrents() {
|
||||||
const until = moment().subtract(7, 'days').format('YYYY-MM-DD');
|
const until = moment().subtract(7, 'days').format('YYYY-MM-DD');
|
||||||
return Torrent.findAll({
|
return Torrent.findAll({
|
||||||
where: literal(`torrent."updatedAt" < \'${until}\'`),
|
where: literal(`torrent."updatedAt" < \'${until}\' and torrent."provider" not in (\'NyaaSi\')`),
|
||||||
limit: 100,
|
limit: 100,
|
||||||
order: [
|
order: [
|
||||||
['seeders', 'DESC'],
|
['seeders', 'DESC'],
|
||||||
|
|||||||
Reference in New Issue
Block a user