mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-20 08:12:05 +00:00
increased streamscreen link fetching timeout
This commit is contained in:
parent
96da369f62
commit
028c6d2823
3 changed files with 6 additions and 6 deletions
|
|
@ -1078,12 +1078,12 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
|||
// Check completion less frequently to reduce CPU load
|
||||
const completionInterval = setInterval(checkScrapersCompletion, 2000);
|
||||
|
||||
// Fallback timeout after 30 seconds
|
||||
// Fallback timeout after 1 minute
|
||||
const fallbackTimeout = setTimeout(() => {
|
||||
clearInterval(completionInterval);
|
||||
setLoadingStreams(false);
|
||||
setActiveFetchingScrapers([]);
|
||||
}, 30000);
|
||||
}, 60000);
|
||||
|
||||
} catch (error) {
|
||||
if (__DEV__) console.error('❌ [loadStreams] Failed to load streams:', error);
|
||||
|
|
@ -1254,12 +1254,12 @@ export const useMetadata = ({ id, type, addonId }: UseMetadataProps): UseMetadat
|
|||
// Check completion less frequently to reduce CPU load
|
||||
const episodeCompletionInterval = setInterval(checkEpisodeScrapersCompletion, 3000);
|
||||
|
||||
// Fallback timeout after 30 seconds
|
||||
// Fallback timeout after 1 minute
|
||||
const episodeFallbackTimeout = setTimeout(() => {
|
||||
clearInterval(episodeCompletionInterval);
|
||||
setLoadingEpisodeStreams(false);
|
||||
setActiveFetchingScrapers([]);
|
||||
}, 30000);
|
||||
}, 60000);
|
||||
|
||||
} catch (error) {
|
||||
if (__DEV__) console.error('❌ [loadEpisodeStreams] Failed to load episode streams:', error);
|
||||
|
|
|
|||
|
|
@ -1056,7 +1056,7 @@ class LocalScraperService {
|
|||
...options.headers
|
||||
},
|
||||
data: options.body,
|
||||
timeout: 30000,
|
||||
timeout: 60000,
|
||||
validateStatus: () => true // Don't throw on HTTP error status codes
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1180,7 +1180,7 @@ class StremioService {
|
|||
|
||||
try {
|
||||
// Increase timeout for debrid services
|
||||
const timeout = addon.id.toLowerCase().includes('torrentio') ? 30000 : 10000;
|
||||
const timeout = addon.id.toLowerCase().includes('torrentio') ? 60000 : 10000;
|
||||
|
||||
const response = await this.retryRequest(async () => {
|
||||
logger.log(`Making request to ${url} with timeout ${timeout}ms`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue