mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
improve results sql query
This commit is contained in:
@@ -54,7 +54,10 @@ function getImdbIdMovieEntries(imdbId) {
|
|||||||
imdbId: { [Op.eq]: imdbId }
|
imdbId: { [Op.eq]: imdbId }
|
||||||
},
|
},
|
||||||
include: [Torrent],
|
include: [Torrent],
|
||||||
limit: 500
|
limit: 500,
|
||||||
|
order: [
|
||||||
|
[Torrent, 'seeders', 'DESC']
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,7 +69,10 @@ function getImdbIdSeriesEntries(imdbId, season, episode) {
|
|||||||
imdbEpisode: { [Op.eq]: episode }
|
imdbEpisode: { [Op.eq]: episode }
|
||||||
},
|
},
|
||||||
include: [Torrent],
|
include: [Torrent],
|
||||||
limit: 500
|
limit: 500,
|
||||||
|
order: [
|
||||||
|
[Torrent, 'seeders', 'DESC']
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +82,10 @@ function getKitsuIdMovieEntries(kitsuId) {
|
|||||||
kitsuId: { [Op.eq]: kitsuId }
|
kitsuId: { [Op.eq]: kitsuId }
|
||||||
},
|
},
|
||||||
include: [Torrent],
|
include: [Torrent],
|
||||||
limit: 500
|
limit: 500,
|
||||||
|
order: [
|
||||||
|
[Torrent, 'seeders', 'DESC']
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +96,10 @@ function getKitsuIdSeriesEntries(kitsuId, episode) {
|
|||||||
kitsuEpisode: { [Op.eq]: episode }
|
kitsuEpisode: { [Op.eq]: episode }
|
||||||
},
|
},
|
||||||
include: [Torrent],
|
include: [Torrent],
|
||||||
limit: 500
|
limit: 500,
|
||||||
|
order: [
|
||||||
|
[Torrent, 'seeders', 'DESC']
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user