[addon] filter realdebrid cached entries to contain ony videos

This commit is contained in:
TheBeastLT
2020-03-17 16:29:36 +01:00
parent ea0250c910
commit 727c763e43
4 changed files with 48 additions and 15 deletions

View File

@@ -131,7 +131,11 @@ function applyMochs(streams, config) {
return Object.keys(config)
.filter(configKey => MOCHS[configKey])
.reduce(async (streams, moch) => {
return await MOCHS[moch].applyMoch(streams, config[moch]).catch(() => streams);
return await MOCHS[moch].applyMoch(streams, config[moch])
.catch(error => {
console.warn(error);
return streams;
});
}, streams);
}