Update animepahe/animepahe.js

This commit is contained in:
aka paul
2026-04-10 13:37:08 +00:00
parent ea29804e86
commit 284414a994
+5 -1
View File
@@ -165,10 +165,14 @@ async function extractStreamUrl(url) {
unpacked.match(/https:\/\/[^\s'";]+\.m3u8/); unpacked.match(/https:\/\/[^\s'";]+\.m3u8/);
if (urlMatch) { if (urlMatch) {
const hlsUrl = (urlMatch[1] || urlMatch[0]).replace(/\\+$/, ''); let 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}`;
hlsUrl = hlsUrl
.replace("/stream/", "/hls/")
.replace("uwu.m3u8", "owo.m3u8");
return { return {
title: title, title: title,
streamUrl: hlsUrl, streamUrl: hlsUrl,