mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 00:32:04 +00:00
fix tmdb enrichment overriding metadata even when turned off
This commit is contained in:
parent
a794e27235
commit
a9a78d5565
1 changed files with 5 additions and 5 deletions
|
|
@ -857,8 +857,8 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
||||||
|
|
||||||
finalMetadata = {
|
finalMetadata = {
|
||||||
...finalMetadata,
|
...finalMetadata,
|
||||||
name: localized.title || finalMetadata.name,
|
name: finalMetadata.name || localized.title,
|
||||||
description: localized.overview || finalMetadata.description,
|
description: finalMetadata.description || localized.overview,
|
||||||
movieDetails: movieDetailsObj,
|
movieDetails: movieDetailsObj,
|
||||||
...(productionInfo.length > 0 && { networks: productionInfo }),
|
...(productionInfo.length > 0 && { networks: productionInfo }),
|
||||||
};
|
};
|
||||||
|
|
@ -894,8 +894,8 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
||||||
|
|
||||||
finalMetadata = {
|
finalMetadata = {
|
||||||
...finalMetadata,
|
...finalMetadata,
|
||||||
name: localized.name || finalMetadata.name,
|
name: finalMetadata.name || localized.name,
|
||||||
description: localized.overview || finalMetadata.description,
|
description: finalMetadata.description || localized.overview,
|
||||||
tvDetails,
|
tvDetails,
|
||||||
...(productionInfo.length > 0 && { networks: productionInfo }),
|
...(productionInfo.length > 0 && { networks: productionInfo }),
|
||||||
};
|
};
|
||||||
|
|
@ -970,7 +970,7 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear banner field if TMDB banner enrichment is enabled to prevent flash
|
// Clear banner field if TMDB banner enrichment is enabled to prevent flash
|
||||||
if (settings.enrichMetadataWithTMDB && settings.tmdbEnrichBanners) {
|
if (settings.enrichMetadataWithTMDB && settings.tmdbEnrichBanners && !finalMetadata.banner) {
|
||||||
finalMetadata = {
|
finalMetadata = {
|
||||||
...finalMetadata,
|
...finalMetadata,
|
||||||
banner: undefined, // Let useMetadataAssets handle banner via TMDB
|
banner: undefined, // Let useMetadataAssets handle banner via TMDB
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue