[scraper] fix season shortcut assignment for anime

This commit is contained in:
TheBeastLT
2020-03-13 22:44:27 +01:00
parent 542c96a2c3
commit 7535a4ea55

View File

@@ -138,7 +138,7 @@ async function decomposeEpisodes(torrent, files, metadata = { episodeCount: [] }
return files;
}
// for anime type episodes are always absolute and for a single season
if (torrent.type === Type.ANIME) {
if (torrent.type === Type.ANIME && torrent.kitsuId) {
files
.filter(file => file.episodes)
.forEach(file => file.season = 1);