mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-22 05:36:32 +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 data = await response.json();
|
||||||
|
|
||||||
const results = data
|
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 => ({
|
.map(anime => ({
|
||||||
href: anime.id.toString(),
|
href: anime.id.toString(),
|
||||||
title: (anime.title || anime.title0),
|
title: (anime.title || anime.titleO),
|
||||||
image: anime.affiche
|
image: anime.affiche
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue