mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 13:16:21 +01:00
Update animeweek/animeweek.js
This commit is contained in:
parent
b34bf70a66
commit
9b1c80f7e6
1 changed files with 27 additions and 4 deletions
|
|
@ -93,15 +93,38 @@ async function extractStreamUrl(url) {
|
|||
};
|
||||
const response = await fetchv2("https://michealcdn.com/player/index.php?data=" + videoId + "&do=getVideo", headers, "POST", postData);
|
||||
const data = await response.json();
|
||||
return data.securedLink;
|
||||
console.log("Fetched video data: " + JSON.stringify(data));
|
||||
|
||||
const streamUrl = data.securedLink;
|
||||
return JSON.stringify({
|
||||
"streams": [
|
||||
{
|
||||
"title": "Stream 1",
|
||||
"streamUrl": streamUrl,
|
||||
"headers": {
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
||||
"Accept": "*/*",
|
||||
"Accept-Language": "en-US,en;q=0.9",
|
||||
"Accept-Encoding": "gzip, deflate, br",
|
||||
"Referer": "https://michealcdn.com/",
|
||||
"Origin": "https://michealcdn.com",
|
||||
"Sec-Fetch-Dest": "video",
|
||||
"Sec-Fetch-Mode": "cors",
|
||||
"Sec-Fetch-Site": "same-origin",
|
||||
"Range": "bytes=0-"
|
||||
}
|
||||
}
|
||||
],
|
||||
"subtitle": ""
|
||||
});
|
||||
} catch (err) {
|
||||
console.log("Error fetching video URL:"+ err);
|
||||
}
|
||||
return "https://error.org/";
|
||||
return JSON.stringify({"streams": [{"title": "Error", "streamUrl": "https://error.org/", "headers": {}}], "subtitle": ""});
|
||||
}
|
||||
|
||||
return "https://error.org/";
|
||||
return JSON.stringify({"streams": [{"title": "Error", "streamUrl": "https://error.org/", "headers": {}}], "subtitle": ""});
|
||||
} catch (err) {
|
||||
return "https://error.org/";
|
||||
return JSON.stringify({"streams": [{"title": "Error", "streamUrl": "https://error.org/", "headers": {}}], "subtitle": ""});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue