mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
MetaDetails adapted to stremio-core changes
This commit is contained in:
parent
2d8ebccc26
commit
65ad1eb55e
1 changed files with 16 additions and 4 deletions
|
|
@ -38,11 +38,23 @@ const useMetaDetails = (urlParams) => {
|
|||
return {
|
||||
action: 'Load',
|
||||
args: {
|
||||
load: 'MetaDetails',
|
||||
model: 'MetaDetails',
|
||||
args: {
|
||||
id: urlParams.id,
|
||||
type_name: urlParams.type,
|
||||
video_id: urlParams.videoId
|
||||
meta_resource_ref: {
|
||||
resource: 'meta',
|
||||
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