From eb2396845221f6eb5466c29d3cc485e68ccce641 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Sun, 5 Apr 2020 20:30:48 +0200 Subject: [PATCH] [scraper] limit all queries to 500 results --- addon/lib/repository.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/addon/lib/repository.js b/addon/lib/repository.js index 945eb3e..5cf6d0e 100644 --- a/addon/lib/repository.js +++ b/addon/lib/repository.js @@ -49,7 +49,8 @@ function getImdbIdMovieEntries(imdbId) { where: { imdbId: { [Op.eq]: imdbId } }, - include: [Torrent] + include: [Torrent], + limit: 500 }); } @@ -60,7 +61,8 @@ function getImdbIdSeriesEntries(imdbId, season, episode) { imdbSeason: { [Op.eq]: season }, imdbEpisode: { [Op.eq]: episode } }, - include: [Torrent] + include: [Torrent], + limit: 500 }); } @@ -69,7 +71,8 @@ function getKitsuIdMovieEntries(kitsuId) { where: { kitsuId: { [Op.eq]: kitsuId } }, - include: [Torrent] + include: [Torrent], + limit: 500 }); } @@ -79,7 +82,8 @@ function getKitsuIdSeriesEntries(kitsuId, episode) { kitsuId: { [Op.eq]: kitsuId }, kitsuEpisode: { [Op.eq]: episode } }, - include: [Torrent] + include: [Torrent], + limit: 500 }); }