fix: userPreferred best matches not being matched properly
This commit is contained in:
@@ -75,7 +75,10 @@ function getAniwatchId(
|
|||||||
userPreferred: anime.jname,
|
userPreferred: anime.jname,
|
||||||
})),
|
})),
|
||||||
);
|
);
|
||||||
return animes.find((anime) => anime.name === bestMatchingTitle)?.id;
|
return animes.find(
|
||||||
|
(anime) =>
|
||||||
|
anime.name === bestMatchingTitle || anime.jname === bestMatchingTitle,
|
||||||
|
)?.id;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user