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

View File

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