handles series type mismatch if is in movie category

This commit is contained in:
TheBeastLT
2020-02-26 00:31:13 +01:00
parent 23880d4fb2
commit 149b24fbf0
5 changed files with 43 additions and 15 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) {
if (torrent.type === Type.MOVIE && !parsedTorrentName.seasons) {
if (parsedTorrentName.complete) {
return torrentFiles(torrent)
.then(files => files.filter(file => file.size > MIN_SIZE))