mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
adapt addons catalog to changes in core
This commit is contained in:
parent
7e6e6a896f
commit
3cfee15e1c
1 changed files with 3 additions and 2 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue