mirror of
https://git.luna-app.eu/50n50/sources
synced 2026-01-12 17:38:37 +01:00
Update kickassanimes/kickassanimes.js
This commit is contained in:
parent
faf20a23f7
commit
a2df765da5
1 changed files with 5 additions and 2 deletions
|
|
@ -1,8 +1,11 @@
|
|||
async function searchResults(keyword) {
|
||||
const results = [];
|
||||
const postData = JSON.stringify({ query: keyword });
|
||||
const postData = `{"query":"${keyword}"}`;
|
||||
const headers = {
|
||||
"Content-Type": "application/json"
|
||||
};
|
||||
try {
|
||||
const response = await fetchv2("https://kickass-anime.ro/api/search", {}, "POST", postData);
|
||||
const response = await fetchv2("https://kickass-anime.ro/api/search", headers, "POST", postData);
|
||||
const data = await response.json();
|
||||
|
||||
data.forEach(item => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue