fix: default to english title when searching aniwatch

This commit is contained in:
2024-08-19 08:39:34 -04:00
parent 71f1682ae2
commit dac2040e36

View File

@@ -8,7 +8,7 @@ export async function getEpisodesFromAniwatch(
.then(({ fetchTitleFromAnilist }) =>
fetchTitleFromAnilist(aniListId, undefined),
)
.then((title) => title?.title?.userPreferred ?? title?.title?.english);
.then((title) => title?.title?.english ?? title?.title?.userPreferred);
if (!animeTitle) {
return null;