From 5ef3e8c9700a2fb180d3f92dcce6bd5a3fc6d88e Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Sun, 27 Oct 2024 08:40:42 -0400 Subject: [PATCH] feat: change aniwatch source to be the first source to check --- src/controllers/episodes/getByAniListId/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/episodes/getByAniListId/index.ts b/src/controllers/episodes/getByAniListId/index.ts index b2c0efc..00e8b1b 100644 --- a/src/controllers/episodes/getByAniListId/index.ts +++ b/src/controllers/episodes/getByAniListId/index.ts @@ -66,15 +66,15 @@ export function fetchEpisodes( shouldRetry: boolean = false, ) { return fetchFromMultipleSources([ + () => + import("./aniwatch").then(({ getEpisodesFromAniwatch }) => + getEpisodesFromAniwatch(aniListId, shouldRetry), + ), () => getEpisodesFromAnify(env, aniListId), // () => // import("./consumet").then(({ getEpisodesFromConsumet }) => // getEpisodesFromConsumet(aniListId), // ), - () => - import("./aniwatch").then(({ getEpisodesFromAniwatch }) => - getEpisodesFromAniwatch(aniListId, shouldRetry), - ), ]); }