mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 21:26:19 +01:00
Update anime-sama/anime-sama.js
This commit is contained in:
parent
ab315e47cd
commit
5e48bd834f
1 changed files with 2 additions and 2 deletions
|
|
@ -3,14 +3,14 @@ async function searchResults(keyword) {
|
|||
const headers = {
|
||||
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
"X-Requested-With": "XMLHttpRequest",
|
||||
"referer": "https://anime-sama.fr/"
|
||||
"referer": "https://anime-sama.org/"
|
||||
};
|
||||
|
||||
const regex = /<a[^>]+href="([^"]+)"[\s\S]*?<img[^>]+src="([^"]+)"[\s\S]*?<h3[^>]*>(.*?)<\/h3>/gi;
|
||||
|
||||
try {
|
||||
const response = await fetchv2(
|
||||
"https://anime-sama.fr/template-php/defaut/fetch.php",
|
||||
"https://anime-sama.org/template-php/defaut/fetch.php",
|
||||
headers,
|
||||
"POST",
|
||||
`query=${encodeURIComponent(keyword)}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue