mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
[scraper] filter non mapped horriblesubs episodes
This commit is contained in:
parent
21338b3aee
commit
c09d7cf566
1 changed files with 2 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ async function _parseShowData(showData) {
|
|||
return kitsuIdsMapping[episode].kitsuId;
|
||||
} else if (Array.isArray(kitsuId)) {
|
||||
console.warn(`Unmapped episode number for ${showData.title} - ${inputEpisode}`);
|
||||
return kitsuId[kitsuId.length - 1];
|
||||
return undefined;
|
||||
}
|
||||
return kitsuId;
|
||||
};
|
||||
|
|
@ -155,6 +155,7 @@ async function _parseShowData(showData) {
|
|||
uploadDate: episodeInfo.uploadDate,
|
||||
})))
|
||||
.reduce((a, b) => a.concat(b), [])
|
||||
.filter((incompleteTorrent) => incompleteTorrent.kitsuId)
|
||||
.map((incompleteTorrent) => entryLimiter.schedule(() => checkIfExists(incompleteTorrent)
|
||||
.then((torrent) => torrent && updateCurrentSeeders(torrent))
|
||||
.then((torrent) => torrent && parseTorrentFiles(torrent)
|
||||
|
|
|
|||
Loading…
Reference in a new issue