fix: limit search query for aniwatch to 100 characters

more than that and the search fails automatically with a 404
This commit is contained in:
2025-01-15 02:48:49 -05:00
parent da8a81a777
commit d589087ad9

View File

@@ -12,8 +12,8 @@ export async function getEpisodesFromAniwatch(
fetchTitleFromAnilist(aniListId, undefined),
)
.then((title) => ({
english: title?.title?.english,
userPreferred: title?.title?.userPreferred,
english: title?.title?.english?.substring(0, 100),
userPreferred: title?.title?.userPreferred?.substring(0, 100),
}));
if (!animeTitle.english && !animeTitle.userPreferred) {