mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
enrich metadata for some debrid providers' metas
This commit is contained in:
@@ -48,6 +48,10 @@ function getTorrent(infoHash) {
|
||||
return Torrent.findOne({ where: { infoHash: infoHash } });
|
||||
}
|
||||
|
||||
function getTorrentWithFiles(infoHash) {
|
||||
return Torrent.findOne({ where: { infoHash: infoHash }, include: [File] });
|
||||
}
|
||||
|
||||
function getImdbIdMovieEntries(imdbId) {
|
||||
return File.findAll({
|
||||
where: {
|
||||
@@ -105,6 +109,7 @@ function getKitsuIdSeriesEntries(kitsuId, episode) {
|
||||
|
||||
module.exports = {
|
||||
getTorrent,
|
||||
getTorrentWithFiles,
|
||||
getImdbIdMovieEntries,
|
||||
getImdbIdSeriesEntries,
|
||||
getKitsuIdMovieEntries,
|
||||
|
||||
Reference in New Issue
Block a user