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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user