mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
useSearch adapted to the new core api
This commit is contained in:
parent
3d840507a9
commit
292f4d59c6
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ const mapSearchStateWithCtx = (search, ctx) => {
|
||||||
'';
|
'';
|
||||||
const selected = search.selected;
|
const selected = search.selected;
|
||||||
const catalog_resources = search.catalog_resources.map((catalog_resource) => {
|
const catalog_resources = search.catalog_resources.map((catalog_resource) => {
|
||||||
catalog_resource.addon_name = ctx.content.addons.reduce((addon_name, addon) => {
|
catalog_resource.addon_name = ctx.profile.addons.reduce((addon_name, addon) => {
|
||||||
if (addon.transportUrl === catalog_resource.request.base) {
|
if (addon.transportUrl === catalog_resource.request.base) {
|
||||||
return addon.manifest.name;
|
return addon.manifest.name;
|
||||||
}
|
}
|
||||||
|
|
@ -41,7 +41,7 @@ const useSearch = (queryParams) => {
|
||||||
return {
|
return {
|
||||||
action: 'Load',
|
action: 'Load',
|
||||||
args: {
|
args: {
|
||||||
load: 'CatalogsWithExtra',
|
model: 'CatalogsWithExtra',
|
||||||
args: {
|
args: {
|
||||||
extra: [
|
extra: [
|
||||||
['search', queryParams.get('search')]
|
['search', queryParams.get('search')]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue