[scraper] updates scrapers and unique index

This commit is contained in:
TheBeastLT
2020-03-14 22:25:51 +01:00
parent 1efaa0451c
commit 326a07b82e
13 changed files with 110 additions and 57 deletions

View File

@@ -62,8 +62,9 @@ async function parseTorrentFiles(torrent) {
}
async function getSeriesFiles(torrent, parsedTorrentName) {
if ((parsedTorrentName.episode && (!parsedTorrentName.seasons || parsedTorrentName.seasons.length <= 1)) ||
(!parsedTorrentName.episodes && parsedTorrentName.date)) {
if (!parsedTorrentName.complete && !parsedTorrentName.hasMovies &&
((parsedTorrentName.episode && (!parsedTorrentName.seasons || parsedTorrentName.seasons.length <= 1)) ||
(!parsedTorrentName.episodes && parsedTorrentName.date))) {
return [{
name: torrent.title,
path: torrent.title,