fix: default to english title when searching aniwatch
This commit is contained in:
@@ -8,7 +8,7 @@ export async function getEpisodesFromAniwatch(
|
|||||||
.then(({ fetchTitleFromAnilist }) =>
|
.then(({ fetchTitleFromAnilist }) =>
|
||||||
fetchTitleFromAnilist(aniListId, undefined),
|
fetchTitleFromAnilist(aniListId, undefined),
|
||||||
)
|
)
|
||||||
.then((title) => title?.title?.userPreferred ?? title?.title?.english);
|
.then((title) => title?.title?.english ?? title?.title?.userPreferred);
|
||||||
|
|
||||||
if (!animeTitle) {
|
if (!animeTitle) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user