Update animepahe/animepahe.js
This commit is contained in:
@@ -165,9 +165,13 @@ async function extractStreamUrl(url) {
|
||||
unpacked.match(/https:\/\/[^\s'";]+\.m3u8/);
|
||||
|
||||
if (urlMatch) {
|
||||
const hlsUrl = (urlMatch[1] || urlMatch[0]).replace(/\\+$/, '');
|
||||
let hlsUrl = (urlMatch[1] || urlMatch[0]).replace(/\\+$/, '');
|
||||
const audioType = audio === "eng" ? "Dub" : "Hardsub";
|
||||
const title = `${resolution}p • ${audioType}`;
|
||||
|
||||
hlsUrl = hlsUrl
|
||||
.replace("/stream/", "/hls/")
|
||||
.replace("uwu.m3u8", "owo.m3u8");
|
||||
|
||||
return {
|
||||
title: title,
|
||||
|
||||
Reference in New Issue
Block a user