diff --git a/scraper/lib/torrentFiles.js b/scraper/lib/torrentFiles.js index 9a8a46e..c007228 100644 --- a/scraper/lib/torrentFiles.js +++ b/scraper/lib/torrentFiles.js @@ -21,7 +21,7 @@ async function parseTorrentFiles(torrent) { // if (metadata && metadata.type !== torrent.type && torrent.type !== Type.ANIME) { // throw new Error(`Mismatching entry type for ${torrent.name}: ${torrent.type}!=${metadata.type}`); // } - if (torrent.type !== Type.ANIME && metadata && metadata.type !== torrent.type) { + if (torrent.type !== Type.ANIME && metadata && metadata.type && metadata.type !== torrent.type) { // it's actually a movie/series torrent.type = metadata.type; }