enrich metadata for some debrid providers' metas

This commit is contained in:
TheBeastLT
2023-04-25 16:35:45 +02:00
parent cb3f920fb3
commit cb381881a5
6 changed files with 48 additions and 2 deletions

View File

@@ -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,