adds metadata type check for anime movies to bypass file fetching

This commit is contained in:
TheBeastLT
2020-03-10 16:22:11 +01:00
parent a44826757c
commit a4a675ab2a
2 changed files with 3 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ async function parseTorrentFiles(torrent) {
// throw new Error(`Mismatching entry type for ${torrent.name}: ${torrent.type}!=${metadata.type}`);
// }
if (torrent.type === Type.MOVIE && !parsedTorrentName.seasons) {
if (torrent.type === Type.MOVIE && !parsedTorrentName.seasons || metadata.type === Type.MOVIE) {
if (parsedTorrentName.complete) {
return torrentFiles(torrent)
.then(files => files.filter(file => file.size > MIN_SIZE))