mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 23:12:13 +00:00
Merge pull request #131 from Stremio/meta-details
MetaDetails adapted to core
This commit is contained in:
commit
25a3ef5d9c
1 changed files with 16 additions and 4 deletions
|
|
@ -38,11 +38,23 @@ const useMetaDetails = (urlParams) => {
|
||||||
return {
|
return {
|
||||||
action: 'Load',
|
action: 'Load',
|
||||||
args: {
|
args: {
|
||||||
load: 'MetaDetails',
|
model: 'MetaDetails',
|
||||||
args: {
|
args: {
|
||||||
id: urlParams.id,
|
meta_resource_ref: {
|
||||||
type_name: urlParams.type,
|
resource: 'meta',
|
||||||
video_id: urlParams.videoId
|
type_name: urlParams.type,
|
||||||
|
id: urlParams.id,
|
||||||
|
extra: []
|
||||||
|
},
|
||||||
|
streams_resource_ref: typeof urlParams.videoId === 'string' ?
|
||||||
|
{
|
||||||
|
resource: 'stream',
|
||||||
|
type_name: urlParams.type,
|
||||||
|
id: urlParams.videoId,
|
||||||
|
extra: []
|
||||||
|
}
|
||||||
|
:
|
||||||
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue