Skip to content

Commit

Permalink
fix(animegarden): search resources
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jun 14, 2023
1 parent 4d3d55f commit df4bade
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/animegarden/src/ufetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ export async function fetchAnimeResources(anime: Anime) {
const { resources } = await fetchResources(ufetch, {
type: '動畫',
after: anime.plan.date,
search: {
include: anime.plan.keywords.include,
exclude: anime.plan.keywords.exclude
},
include: anime.plan.keywords.include,
exclude: anime.plan.keywords.exclude,
retry: 10,
count: -1,
progress(res, { url, page }) {}
progress(res, { url, page }) {},
});
return resources;
}
Expand All @@ -27,7 +25,7 @@ export const ufetch = async (
// @ts-ignore
return fetch(url, {
...init,
dispatcher: new ProxyAgent(proxy)
dispatcher: new ProxyAgent(proxy),
});
} else {
// @ts-ignore
Expand Down

0 comments on commit df4bade

Please sign in to comment.