mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-25 10:33:07 +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": {
|
"updates": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"checkAutomatically": "ON_LOAD",
|
"checkAutomatically": "ON_ERROR_RECOVERY",
|
||||||
"fallbackToCacheTimeout": 30000,
|
"fallbackToCacheTimeout": 30000,
|
||||||
"url": "https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest"
|
"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]);
|
}, [type, id, currentEpisode?.season_number, currentEpisode?.episode_number]);
|
||||||
|
|
||||||
const navigateToPlayer = useCallback(async (stream: Stream, options?: { forceVlc?: boolean; headers?: Record<string, string> }) => {
|
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
|
// Prepare available streams for the change source feature
|
||||||
const streamsToPass = type === 'series' ? episodeStreams : groupedStreams;
|
const streamsToPass = type === 'series' ? episodeStreams : groupedStreams;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -191,21 +191,13 @@ export class UpdateService {
|
||||||
this.addLog(`Update URL: ${this.getUpdateUrl()}`, 'INFO');
|
this.addLog(`Update URL: ${this.getUpdateUrl()}`, 'INFO');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Always perform update check regardless of environment for debugging
|
// Only log initialization info, don't perform automatic update checks
|
||||||
this.addLog('Performing initial update check...', 'INFO');
|
this.addLog('UpdateService initialized - updates will be handled manually via popup', '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');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if we're running in a development environment
|
// Check if we're running in a development environment
|
||||||
if (__DEV__) {
|
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');
|
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
|
// Check if updates are enabled
|
||||||
|
|
@ -215,7 +207,7 @@ export class UpdateService {
|
||||||
return;
|
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');
|
this.addLog('UpdateService initialization completed successfully', 'INFO');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.addLog(`Initialization failed: ${error instanceof Error ? error.message : String(error)}`, 'ERROR');
|
this.addLog(`Initialization failed: ${error instanceof Error ? error.message : String(error)}`, 'ERROR');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue