mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-22 05:36:32 +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 = {
|
const headers = {
|
||||||
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
||||||
"X-Requested-With": "XMLHttpRequest",
|
"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;
|
const regex = /<a[^>]+href="([^"]+)"[\s\S]*?<img[^>]+src="([^"]+)"[\s\S]*?<h3[^>]*>(.*?)<\/h3>/gi;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetchv2(
|
const response = await fetchv2(
|
||||||
"https://anime-sama.fr/template-php/defaut/fetch.php",
|
"https://anime-sama.org/template-php/defaut/fetch.php",
|
||||||
headers,
|
headers,
|
||||||
"POST",
|
"POST",
|
||||||
`query=${encodeURIComponent(keyword)}`
|
`query=${encodeURIComponent(keyword)}`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue