[addon] include premiumize catalog

This commit is contained in:
TheBeastLT
2021-02-01 00:28:01 +01:00
parent 1b319d286d
commit 127e3fc014
2 changed files with 9 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ const Providers = [
'NyaaPantsu'
];
const DefaultProviders = Providers
const CatalogMochs = [MochOptions.realdebrid, MochOptions.alldebrid];
const CatalogMochs = Object.values(MochOptions).filter(moch => moch.catalog);
function manifest(config = {}) {
const providersList = config.providers && config.providers.map(provider => getProvider(provider)) || DefaultProviders;

View File

@@ -14,25 +14,29 @@ const MOCHS = {
key: 'realdebrid',
instance: realdebrid,
name: "RealDebrid",
shortName: 'RD'
shortName: 'RD',
catalog: true
},
premiumize: {
key: 'premiumize',
instance: premiumize,
name: 'Premiumize',
shortName: 'PM'
shortName: 'PM',
catalog: true
},
alldebrid: {
key: 'alldebrid',
instance: alldebrid,
name: 'AllDebrid',
shortName: 'AD'
shortName: 'AD',
catalog: true
},
putio: {
key: 'putio',
instance: putio,
name: 'Put.io',
shortName: 'Putio'
shortName: 'Putio',
catalog: false
}
};