mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 21:26:53 +00:00
[scraper] fix season shortcut assignment for anime
This commit is contained in:
parent
542c96a2c3
commit
7535a4ea55
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue