mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-20 16:22:04 +00:00
chore: add debug logging to metadata loading
This commit is contained in:
parent
77d5b3eb47
commit
4a30ca4067
1 changed files with 3 additions and 0 deletions
|
|
@ -482,6 +482,7 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
||||||
|
|
||||||
const loadMetadata = async () => {
|
const loadMetadata = async () => {
|
||||||
try {
|
try {
|
||||||
|
console.log('🚀 [useMetadata] loadMetadata CALLED for:', { id, type });
|
||||||
console.log('🔍 [useMetadata] loadMetadata started:', {
|
console.log('🔍 [useMetadata] loadMetadata started:', {
|
||||||
id,
|
id,
|
||||||
type,
|
type,
|
||||||
|
|
@ -746,11 +747,13 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
||||||
const [content, castData] = await Promise.allSettled([
|
const [content, castData] = await Promise.allSettled([
|
||||||
// Load content with timeout and retry
|
// Load content with timeout and retry
|
||||||
withRetry(async () => {
|
withRetry(async () => {
|
||||||
|
console.log('⚡ [useMetadata] Calling catalogService.getEnhancedContentDetails...');
|
||||||
console.log('🔍 [useMetadata] Calling catalogService.getEnhancedContentDetails:', { type, actualId, addonId });
|
console.log('🔍 [useMetadata] Calling catalogService.getEnhancedContentDetails:', { type, actualId, addonId });
|
||||||
const result = await withTimeout(
|
const result = await withTimeout(
|
||||||
catalogService.getEnhancedContentDetails(type, actualId, addonId),
|
catalogService.getEnhancedContentDetails(type, actualId, addonId),
|
||||||
API_TIMEOUT
|
API_TIMEOUT
|
||||||
);
|
);
|
||||||
|
console.log('✅ [useMetadata] catalogService returned:', result ? 'DATA' : 'NULL');
|
||||||
// Store the actual ID used (could be IMDB)
|
// Store the actual ID used (could be IMDB)
|
||||||
if (actualId.startsWith('tt')) {
|
if (actualId.startsWith('tt')) {
|
||||||
setImdbId(actualId);
|
setImdbId(actualId);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue