stores files without found episode

This commit is contained in:
TheBeastLT
2020-03-01 15:31:30 +01:00
parent 149b24fbf0
commit 1170159f59
4 changed files with 23 additions and 15 deletions

View File

@@ -86,9 +86,6 @@ async function filesFromTorrentStream(torrent) {
if (!torrent.infoHash && !torrent.magnetLink) {
return Promise.reject(new Error("no infoHash or magnetLink"));
}
if (torrent.seeders === 0) {
return Promise.reject(new Error("no seeders for the torrent"));
}
return new Promise((resolve, rejected) => {
const engine = new torrentStream(torrent.magnetLink || torrent.infoHash, { connections: MAX_PEER_CONNECTIONS });
@@ -125,8 +122,8 @@ function filterSamples(files) {
}
function filterExtras(files) {
const isSample = file => file.path.match(/extras?\//i);
return files.filter(file => !isSample(file));
const isExtra = file => file.path.match(/extras?\//i);
return files.filter(file => !isExtra(file));
}
function dynamicTimeout(torrent) {