mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
small changes
This commit is contained in:
parent
6b4391e954
commit
3ce0db9d2a
3 changed files with 8 additions and 13 deletions
2
app.json
2
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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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<string, string> }) => {
|
||||
// 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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue