store series with single file

This commit is contained in:
TheBeastLT
2021-09-20 09:09:30 +02:00
parent e09f4c6269
commit 52840c87d6

View File

@@ -106,7 +106,7 @@ async function getSeriesTorrentContent(torrent) {
async function mapSeriesEpisode(file, torrent, files) {
if (!file.episodes && !file.kitsuEpisodes) {
if (files.some(otherFile => otherFile.episodes || otherFile.kitsuEpisodes) || parse(torrent.title).seasons) {
if (files.length === 1 || files.some(f => f.episodes || f.kitsuEpisodes) || parse(torrent.title).seasons) {
return Promise.resolve({
infoHash: torrent.infoHash,
fileIndex: file.fileIndex,