mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-04-20 05:52:03 +00:00
store series with single file
This commit is contained in:
parent
e09f4c6269
commit
52840c87d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue