mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 00:32:04 +00:00
fix
This commit is contained in:
parent
e7b3458f34
commit
2c6c110265
1 changed files with 4 additions and 5 deletions
|
|
@ -227,18 +227,17 @@ const ContinueWatchingSection = React.forwardRef<ContinueWatchingRef>((props, re
|
||||||
try {
|
try {
|
||||||
const shouldFetchMeta = await stremioService.isValidContentId(type, id);
|
const shouldFetchMeta = await stremioService.isValidContentId(type, id);
|
||||||
|
|
||||||
const [metadata, basicContent, addonSpecificMeta, metadataAddonMeta] = await Promise.all([
|
const [metadata, basicContent, addonSpecificMeta] = await Promise.all([
|
||||||
shouldFetchMeta ? stremioService.getMetaDetails(type, id) : Promise.resolve(null),
|
shouldFetchMeta ? stremioService.getMetaDetails(type, id) : Promise.resolve(null),
|
||||||
catalogService.getBasicContentDetails(type, id),
|
catalogService.getBasicContentDetails(type, id),
|
||||||
|
|
||||||
addonId
|
addonId
|
||||||
? stremioService.getMetaDetails(type, id, addonId).catch(() => null)
|
? stremioService.getMetaDetails(type, id, addonId).catch(() => null)
|
||||||
: Promise.resolve(null),
|
: Promise.resolve(null)
|
||||||
|
|
||||||
stremioService.getMetaDetails(type, id).catch(() => null)
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const preferredAddonMeta = addonSpecificMeta || metadataAddonMeta;
|
const preferredAddonMeta = addonSpecificMeta || metadata;
|
||||||
|
|
||||||
|
|
||||||
const finalContent = basicContent ? {
|
const finalContent = basicContent ? {
|
||||||
...basicContent,
|
...basicContent,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue