[addon] adds filtering based on provider

This commit is contained in:
TheBeastLT
2020-03-15 23:46:06 +01:00
parent 6c56d76f98
commit 70c279d7d7
11 changed files with 102 additions and 45 deletions

View File

@@ -6,10 +6,10 @@ const Providers = [
'HorribleSubs'
];
function manifest(providers, realDebridApiKey) {
function manifest({ providers, realdebrid } = {}) {
const providersList = Array.isArray(providers) && providers.map(provider => getProvider(provider)) || Providers;
const providersDesc = providers && providers.length ? 'Enabled providers -' : 'Currently supports';
const realDebridDesc = realDebridApiKey ? ' and RealdDebrid enabled' : '';
const realDebridDesc = realdebrid ? ' and RealDebrid enabled' : '';
return {
id: 'com.stremio.torrentio.addon',
version: '0.0.1-beta',