hythythytht
Fetch and Save Remote Content / fetch (push) Successful in 14s

This commit is contained in:
aka paul
2026-06-03 18:16:48 +02:00
parent 887ee54145
commit 7dd716c10c
+4 -4
View File
@@ -147,7 +147,7 @@ async function searchResults(keyword) {
async function extractDetails(url) {
try {
const slug = url.split('/').pop();
const slug = url.split('/').filter(Boolean).pop();
const response = await fetchSigned(`/api/v1/anime/${slug}`);
const text = typeof response.text === 'function' ? await response.text() : response;
const data = JSON.parse(text);
@@ -155,7 +155,7 @@ async function extractDetails(url) {
return JSON.stringify([{
description: data.synopsis || "N/A",
aliases: data.alternativeTitle || "N/A",
airdate: data.premiered || "N/A"
airdate: data.premiered || data.ratingLabel || "N/A"
}]);
} catch (err) {
return JSON.stringify([{
@@ -168,7 +168,7 @@ async function extractDetails(url) {
async function extractEpisodes(url) {
try {
const slug = url.split('/').pop();
const slug = url.split('/').filter(Boolean).pop();
const response = await fetchSigned(`/api/v1/anime/${slug}`);
const text = typeof response.text === 'function' ? await response.text() : response;
const data = JSON.parse(text);
@@ -189,7 +189,7 @@ async function extractEpisodes(url) {
async function extractStreamUrl(url) {
try {
const parts = url.split('/');
const parts = url.split('/').filter(Boolean);
const episodeNumber = parts.pop();
const slug = parts.pop();