mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
updates episode decompose
This commit is contained in:
@@ -6,11 +6,11 @@ const { retrieveTorrentFiles } = require('./cache');
|
||||
const MAX_PEER_CONNECTIONS = process.env.MAX_PEER_CONNECTIONS || 20;
|
||||
const EXTENSIONS = ["3g2", "3gp", "avi", "flv", "mkv", "mov", "mp2", "mp4", "mpe", "mpeg", "mpg", "mpv", "webm", "wmv"];
|
||||
|
||||
module.exports.updateCurrentSeeders = function(torrent) {
|
||||
return Promise.resolve({ ...torrent, seeders: 0});
|
||||
module.exports.updateCurrentSeeders = function (torrent) {
|
||||
return Promise.resolve({ ...torrent, seeders: torrent.seeders || 0 });
|
||||
};
|
||||
|
||||
module.exports.torrentFiles = function(torrent) {
|
||||
module.exports.torrentFiles = function (torrent) {
|
||||
return filesFromTorrentFile(torrent)
|
||||
.catch(() => filesFromTorrentStream(torrent))
|
||||
.catch(() => filesFromCache(torrent.infoHash))
|
||||
|
||||
Reference in New Issue
Block a user