mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
store series with single file
This commit is contained in:
@@ -106,7 +106,7 @@ async function getSeriesTorrentContent(torrent) {
|
|||||||
|
|
||||||
async function mapSeriesEpisode(file, torrent, files) {
|
async function mapSeriesEpisode(file, torrent, files) {
|
||||||
if (!file.episodes && !file.kitsuEpisodes) {
|
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({
|
return Promise.resolve({
|
||||||
infoHash: torrent.infoHash,
|
infoHash: torrent.infoHash,
|
||||||
fileIndex: file.fileIndex,
|
fileIndex: file.fileIndex,
|
||||||
|
|||||||
Reference in New Issue
Block a user