mirror of
https://git.luna-app.eu/50n50/sources
synced 2026-01-12 09:28:35 +01:00
Update animepahe/animepahe.js
This commit is contained in:
parent
2bd6ed54a1
commit
9287773e75
1 changed files with 2 additions and 2 deletions
|
|
@ -148,13 +148,13 @@ async function extractStreamUrl(url) {
|
||||||
unpacked.match(/https:\/\/[^\s'";]+\.m3u8/);
|
unpacked.match(/https:\/\/[^\s'";]+\.m3u8/);
|
||||||
|
|
||||||
if (urlMatch) {
|
if (urlMatch) {
|
||||||
const hlsUrl = urlMatch[1] || urlMatch[0];
|
const hlsUrl = (urlMatch[1] || urlMatch[0]).replace(/\\+$/, '');
|
||||||
const audioType = audio === "eng" ? "Dub" : "Hardsub";
|
const audioType = audio === "eng" ? "Dub" : "Hardsub";
|
||||||
const title = `${resolution}p • ${audioType}`;
|
const title = `${resolution}p • ${audioType}`;
|
||||||
|
|
||||||
streams.push({
|
streams.push({
|
||||||
title: title,
|
title: title,
|
||||||
streamUrl: hlsUrl,
|
streamUrl: hlsUrl.replace("uwu.m3u8", "owo.m3u8"),
|
||||||
headers: {
|
headers: {
|
||||||
"Referer": "https://kwik.cx/",
|
"Referer": "https://kwik.cx/",
|
||||||
"Origin": "https://kwik.cx"
|
"Origin": "https://kwik.cx"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue