diff --git a/app.json b/app.json index cfe59cb..2ed43cc 100644 --- a/app.json +++ b/app.json @@ -82,7 +82,7 @@ ], "updates": { "enabled": true, - "checkAutomatically": "ON_LOAD", + "checkAutomatically": "ON_ERROR_RECOVERY", "fallbackToCacheTimeout": 30000, "url": "https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest" }, diff --git a/src/screens/StreamsScreen.tsx b/src/screens/StreamsScreen.tsx index d12c844..c0b9fde 100644 --- a/src/screens/StreamsScreen.tsx +++ b/src/screens/StreamsScreen.tsx @@ -919,6 +919,9 @@ export const StreamsScreen = () => { }, [type, id, currentEpisode?.season_number, currentEpisode?.episode_number]); const navigateToPlayer = useCallback(async (stream: Stream, options?: { forceVlc?: boolean; headers?: Record }) => { + // Add 50ms delay before navigating to player + await new Promise(resolve => setTimeout(resolve, 50)); + // Prepare available streams for the change source feature const streamsToPass = type === 'series' ? episodeStreams : groupedStreams; diff --git a/src/services/updateService.ts b/src/services/updateService.ts index 9116883..adeaf60 100644 --- a/src/services/updateService.ts +++ b/src/services/updateService.ts @@ -191,21 +191,13 @@ export class UpdateService { this.addLog(`Update URL: ${this.getUpdateUrl()}`, 'INFO'); try { - // Always perform update check regardless of environment for debugging - this.addLog('Performing initial update check...', 'INFO'); - const updateInfo = await this.checkForUpdates(); - - if (updateInfo.isAvailable) { - this.addLog(`Update available: ${updateInfo.manifest?.id || 'unknown'}`, 'INFO'); - } else { - this.addLog('No updates available', 'INFO'); - } + // Only log initialization info, don't perform automatic update checks + this.addLog('UpdateService initialized - updates will be handled manually via popup', 'INFO'); // Check if we're running in a development environment if (__DEV__) { - this.addLog('Running in development mode, but allowing update checks for testing', 'WARN'); + this.addLog('Running in development mode', 'WARN'); this.addLog('UpdateService initialization completed (dev mode)', 'INFO'); - // Don't return early - allow update checks in dev mode for testing } // Check if updates are enabled @@ -215,7 +207,7 @@ export class UpdateService { return; } - this.addLog('Updates are enabled, skipping automatic periodic checks', 'INFO'); + this.addLog('Updates are enabled, manual update checks only', 'INFO'); this.addLog('UpdateService initialization completed successfully', 'INFO'); } catch (error) { this.addLog(`Initialization failed: ${error instanceof Error ? error.message : String(error)}`, 'ERROR');