From 3cfee15e1cf7549bceb0585f7aab7f552a29bced Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Wed, 9 Sep 2020 18:16:28 +0300 Subject: [PATCH] adapt addons catalog to changes in core --- src/routes/Addons/useAddons.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/Addons/useAddons.js b/src/routes/Addons/useAddons.js index 11f3d600c..9eb14b7f5 100644 --- a/src/routes/Addons/useAddons.js +++ b/src/routes/Addons/useAddons.js @@ -5,7 +5,7 @@ const { useServices } = require('stremio/services'); const { useModelState } = require('stremio/common'); const INSTALLED_CATALOG_ID = 'INSTALLED'; -const INSTALLED_CATALOG_BASE = ''; +const INSTALLED_CATALOG_BASE = 'http://demo/'; const initAddonsState = () => ({ selectable: { @@ -17,7 +17,8 @@ const initAddonsState = () => ({ const mapAddonsStateWithCtx = (addons, ctx) => { const installedSelectableTypes = ctx.profile.addons.map((addon) => addon.manifest.types) - .flat(2).filter((type, index, types) => types.indexOf(type) === index) + .flat(2) + .filter((type, index, types) => types.indexOf(type) === index) .map((type) => ({ name: type, request: {