mirror of
https://git.luna-app.eu/50n50/sources
synced 2026-01-12 01:18:11 +01:00
Update senshi/senshi.js
This commit is contained in:
parent
1569479457
commit
cafc9dea38
1 changed files with 5 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ async function searchResults(keyword) {
|
|||
results.push({
|
||||
title: item.title,
|
||||
image: "https://senshi.live" + item.anime_picture,
|
||||
href: item.id
|
||||
href: "https://senshi.live/anime/" + item.id
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -25,9 +25,9 @@ async function searchResults(keyword) {
|
|||
}
|
||||
}
|
||||
|
||||
async function extractDetails(ID) {
|
||||
async function extractDetails(url) {
|
||||
try {
|
||||
const response = await fetchv2("https://senshi.live/anime/" + ID);
|
||||
const response = await fetchv2(url);
|
||||
const data = await response.json();
|
||||
|
||||
return JSON.stringify([{
|
||||
|
|
@ -44,7 +44,8 @@ async function extractDetails(ID) {
|
|||
}
|
||||
}
|
||||
|
||||
async function extractEpisodes(ID) {
|
||||
async function extractEpisodes(url) {
|
||||
const ID = url.split("/").pop();
|
||||
const results = [];
|
||||
try {
|
||||
const response = await fetchv2("https://senshi.live/episodes/" + ID, {"Referer": "https://senshi.live/"});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue