diff --git a/animepahe/animepahe.js b/animepahe/animepahe.js index 5471358..ea3eb45 100644 --- a/animepahe/animepahe.js +++ b/animepahe/animepahe.js @@ -148,13 +148,13 @@ async function extractStreamUrl(url) { unpacked.match(/https:\/\/[^\s'";]+\.m3u8/); if (urlMatch) { - const hlsUrl = urlMatch[1] || urlMatch[0]; + const hlsUrl = (urlMatch[1] || urlMatch[0]).replace(/\\+$/, ''); const audioType = audio === "eng" ? "Dub" : "Hardsub"; const title = `${resolution}p • ${audioType}`; streams.push({ title: title, - streamUrl: hlsUrl, + streamUrl: hlsUrl.replace("uwu.m3u8", "owo.m3u8"), headers: { "Referer": "https://kwik.cx/", "Origin": "https://kwik.cx"