diff --git a/scraper/lib/torrentEntries.js b/scraper/lib/torrentEntries.js index 66d69a6..985150e 100644 --- a/scraper/lib/torrentEntries.js +++ b/scraper/lib/torrentEntries.js @@ -28,7 +28,7 @@ async function createTorrentEntry(torrent) { .catch(() => undefined); } - if (!torrent.imdbId && !torrent.kitsuId && !titleInfo.complete) { + if (!torrent.imdbId && !torrent.kitsuId && !titleInfo.complete && typeof titleInfo.year !== 'string') { console.log(`imdbId or kitsuId not found: ${torrent.title}`); repository.createFailedImdbTorrent(torrent); return; diff --git a/scraper/lib/torrentFiles.js b/scraper/lib/torrentFiles.js index 0b4f974..54a1990 100644 --- a/scraper/lib/torrentFiles.js +++ b/scraper/lib/torrentFiles.js @@ -22,7 +22,7 @@ async function parseTorrentFiles(torrent) { } if (torrent.type === Type.MOVIE && !parsedTorrentName.seasons || metadata && metadata.type === Type.MOVIE) { - if (parsedTorrentName.complete) { + if (parsedTorrentName.complete || typeof parsedTorrentName.year === 'string') { return torrentFiles(torrent) .then(files => files.filter(file => file.size > MIN_SIZE)) .then(files => Promise.all(files