mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] fix season shortcut assignment for anime
This commit is contained in:
@@ -138,7 +138,7 @@ async function decomposeEpisodes(torrent, files, metadata = { episodeCount: [] }
|
|||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
// for anime type episodes are always absolute and for a single season
|
// 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
|
files
|
||||||
.filter(file => file.episodes)
|
.filter(file => file.episodes)
|
||||||
.forEach(file => file.season = 1);
|
.forEach(file => file.season = 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user