mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] fixes moch application when no moch configured
This commit is contained in:
@@ -45,7 +45,7 @@ const unrestrictQueue = new namedQueue((task, callback) => task.method()
|
||||
.catch((error => callback(error))));
|
||||
|
||||
async function applyMochs(streams, config) {
|
||||
if (!streams || !streams.length) {
|
||||
if (!streams || !streams.length || !Object.keys(MOCHS).find(moch => config[moch])) {
|
||||
return streams;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user