[addon] display enabled providers

This commit is contained in:
TheBeastLT
2020-04-12 20:41:38 +02:00
parent 31e3970272
commit de0fc88cf3
2 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
const { addonBuilder } = require('stremio-addon-sdk');
const { Type } = require('./lib/types');
const { manifest, Providers } = require('./lib/manifest');
const { manifest, DefaultProviders } = require('./lib/manifest');
const { cacheWrapStream } = require('./lib/cache');
const { toStreamInfo } = require('./lib/streamInfo');
const repository = require('./lib/repository');
@@ -12,7 +12,7 @@ const CACHE_MAX_AGE_EMPTY = 30 * 60; // 30 minutes
const STALE_REVALIDATE_AGE = 4 * 60 * 60; // 4 hours
const STALE_ERROR_AGE = 7 * 24 * 60 * 60; // 7 days
const defaultProviders = Providers.map(provider => provider.toLowerCase());
const defaultProviders = DefaultProviders.map(provider => provider.toLowerCase());
const builder = new addonBuilder(manifest());
builder.defineStreamHandler((args) => {