fix: maxRetries set to 3
since max limit is 3
This commit is contained in:
@@ -183,8 +183,10 @@ app.openapi(route, async (c) => {
|
||||
const isAnifyEnabled = readEnvVariable<boolean>(c.env, "ENABLE_ANIFY");
|
||||
let result: FetchUrlResponse | null;
|
||||
if (provider) {
|
||||
console.log(`Fetching sources from ${provider} for ${aniListId}`);
|
||||
result = await fetchEpisodeUrl(provider, id, aniListId, isAnifyEnabled);
|
||||
} else {
|
||||
console.log(`Fetching sources from all providers for ${aniListId}`);
|
||||
const { fetchUrlResult } = await fetchEpisodeUrlFromAllProviders(
|
||||
aniListId,
|
||||
episodeNumber!,
|
||||
|
||||
Reference in New Issue
Block a user