mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-30 14:28:55 +00:00
fix backdrop override by tmdb enrichment
This commit is contained in:
parent
a9a78d5565
commit
fd1107a5a3
1 changed files with 6 additions and 6 deletions
|
|
@ -177,17 +177,17 @@ export const useMetadataAssets = (
|
|||
// Only update if request wasn't aborted and component is still mounted
|
||||
if (!isMountedRef.current) return;
|
||||
|
||||
if (details?.backdrop_path) {
|
||||
if (metadata?.banner) {
|
||||
finalBanner = metadata.banner;
|
||||
bannerSourceType = 'default';
|
||||
} else if (details?.backdrop_path) {
|
||||
finalBanner = tmdbService.getImageUrl(details.backdrop_path);
|
||||
bannerSourceType = 'tmdb';
|
||||
|
||||
// Preload the image
|
||||
if (finalBanner) {
|
||||
FastImage.preload([{ uri: finalBanner }]);
|
||||
}
|
||||
} else {
|
||||
// TMDB has no backdrop, gracefully fall back
|
||||
finalBanner = metadata?.banner || bannerImage || null;
|
||||
finalBanner = bannerImage || null;
|
||||
bannerSourceType = 'default';
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
@ -269,4 +269,4 @@ export const useMetadataAssets = (
|
|||
logoLoadError: false,
|
||||
setLogoLoadError: () => { },
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue