mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
fetch addon provided logo first if it errors then fallback to tmdb
This commit is contained in:
parent
67b16c27f3
commit
d4917fefc9
1 changed files with 7 additions and 2 deletions
|
|
@ -909,8 +909,13 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
|||
|
||||
// Centralized logo fetching logic
|
||||
try {
|
||||
if (addonLogo) {
|
||||
finalMetadata.logo = addonLogo;
|
||||
if (__DEV__) {
|
||||
console.log('[useMetadata] Using addon-provided logo:', { hasLogo: true });
|
||||
}
|
||||
// Check both master switch AND granular logos setting
|
||||
if (settings.enrichMetadataWithTMDB && settings.tmdbEnrichLogos) {
|
||||
} else if (settings.enrichMetadataWithTMDB && settings.tmdbEnrichLogos) {
|
||||
// Only use TMDB logos when both enrichment AND logos option are ON
|
||||
const tmdbService = TMDBService.getInstance();
|
||||
const preferredLanguage = settings.tmdbLanguagePreference || 'en';
|
||||
|
|
@ -2464,4 +2469,4 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
|||
collectionMovies,
|
||||
loadingCollection,
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue