mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 21:26:19 +01:00
Update franime/franime.js
This commit is contained in:
parent
ccb161fd25
commit
40b4c56228
1 changed files with 3 additions and 2 deletions
|
|
@ -4,10 +4,11 @@ async function searchResults(keyword) {
|
|||
const data = await response.json();
|
||||
|
||||
const results = data
|
||||
.filter(anime => anime.title.toLowerCase().includes(keyword.toLowerCase()))
|
||||
.filter(anime => (anime.title?.toLowerCase().includes(keyword.toLowerCase())) ||
|
||||
(anime.titleO?.toLowerCase().includes(keyword.toLowerCase())))
|
||||
.map(anime => ({
|
||||
href: anime.id.toString(),
|
||||
title: (anime.title || anime.title0),
|
||||
title: (anime.title || anime.titleO),
|
||||
image: anime.affiche
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue