[addon] refactor applyMochs method and include other debrid options

This commit is contained in:
TheBeastLT
2020-05-11 21:54:10 +02:00
parent 8613a6500f
commit a4f28aedc8
3 changed files with 56 additions and 31 deletions

View File

@@ -10,6 +10,9 @@ function parseConfiguration(configuration) {
if (configValues.providers) {
configValues.providers = configValues.providers.split(',').map(provider => provider.toLowerCase());
}
if (configValues.debridoptions) {
configValues.debridoptions = configValues.debridoptions.split(',').map(option => option.toLowerCase());
}
return configValues;
}