mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 00:32:04 +00:00
minor fix
This commit is contained in:
parent
abdbffbc7f
commit
7f7f6afc81
1 changed files with 3 additions and 3 deletions
|
|
@ -1576,8 +1576,7 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
||||||
let tmdbId;
|
let tmdbId;
|
||||||
let stremioId = id;
|
let stremioId = id;
|
||||||
// Use TMDB-resolved type if available — handles "other", "Movie", etc.
|
// Use TMDB-resolved type if available — handles "other", "Movie", etc.
|
||||||
// Use metadata.type first (most reliable — comes directly from the addon's meta response),
|
// Use metadata.type first (from addon meta response), then TMDB-resolved, then normalized
|
||||||
// then fall back to TMDB-resolved type, then normalizedType.
|
|
||||||
let effectiveStreamType: string = metadata?.type || resolvedTypeRef.current || normalizedType;
|
let effectiveStreamType: string = metadata?.type || resolvedTypeRef.current || normalizedType;
|
||||||
|
|
||||||
if (id.startsWith('tmdb:')) {
|
if (id.startsWith('tmdb:')) {
|
||||||
|
|
@ -1633,7 +1632,8 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
||||||
const allStremioAddons = await stremioService.getInstalledAddons();
|
const allStremioAddons = await stremioService.getInstalledAddons();
|
||||||
const localScrapers = await localScraperService.getInstalledScrapers();
|
const localScrapers = await localScraperService.getInstalledScrapers();
|
||||||
|
|
||||||
const requestedStreamType = type;
|
// Use the best available type — not raw type which may be "other"
|
||||||
|
const requestedStreamType = metadata?.type || resolvedTypeRef.current || normalizedType;
|
||||||
|
|
||||||
const pickEligibleStreamAddons = (requestType: string) =>
|
const pickEligibleStreamAddons = (requestType: string) =>
|
||||||
allStremioAddons.filter(addon => {
|
allStremioAddons.filter(addon => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue