fix: maxRetries set to 3

since max limit is 3
This commit is contained in:
2024-09-26 01:32:02 -04:00
parent 58fa52f083
commit 75eca0f6bd
3 changed files with 5 additions and 3 deletions

View File

@@ -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!,