mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 21:12:13 +00:00
lib_item returned from usePlayer
This commit is contained in:
parent
9411e6866b
commit
7af190a981
1 changed files with 5 additions and 2 deletions
|
|
@ -6,7 +6,8 @@ const initPlayerState = () => ({
|
|||
selected: null,
|
||||
meta_resource: null,
|
||||
subtitles_resources: [],
|
||||
next_video: null
|
||||
next_video: null,
|
||||
lib_item: null
|
||||
});
|
||||
|
||||
const mapPlayerStateWithCtx = (player, ctx) => {
|
||||
|
|
@ -60,11 +61,13 @@ const mapPlayerStateWithCtx = (player, ctx) => {
|
|||
};
|
||||
});
|
||||
const next_video = player.next_video;
|
||||
const lib_item = player.lib_item;
|
||||
return {
|
||||
selected,
|
||||
meta_resource,
|
||||
subtitles_resources,
|
||||
next_video
|
||||
next_video,
|
||||
lib_item
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue