forked from 50n50/sources
Update anime-sama/anime-sama.js
This commit is contained in:
@@ -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)}`
|
||||||
|
|||||||
Reference in New Issue
Block a user