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),
|
fetchTitleFromAnilist(aniListId, undefined),
|
||||||
)
|
)
|
||||||
.then((title) => ({
|
.then((title) => ({
|
||||||
english: title?.title?.english,
|
english: title?.title?.english?.substring(0, 100),
|
||||||
userPreferred: title?.title?.userPreferred,
|
userPreferred: title?.title?.userPreferred?.substring(0, 100),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (!animeTitle.english && !animeTitle.userPreferred) {
|
if (!animeTitle.english && !animeTitle.userPreferred) {
|
||||||
|
|||||||
Reference in New Issue
Block a user