mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-28 00:49:40 +05:00
try to fix parsing
This commit is contained in:
parent
879bd6ba3f
commit
38faa451c3
2 changed files with 47 additions and 37 deletions
|
@ -74,6 +74,7 @@ export const ReleasePlayerCustom = (props: {
|
|||
};
|
||||
|
||||
const _fetchKodikManifest = async (url: string) => {
|
||||
url = url.replace("https://", "")
|
||||
const response = await fetch(
|
||||
`/api/proxy/${encodeURIComponent(url)}?html=true`
|
||||
);
|
||||
|
@ -92,14 +93,14 @@ export const ReleasePlayerCustom = (props: {
|
|||
.replace("';", "");
|
||||
const urlParams = JSON.parse(urlParamsStr);
|
||||
|
||||
const domain = url.replace("https://", "").split("/")[0];
|
||||
const urlStr = url.replace(`https://${domain}/`, "");
|
||||
const domain = url.split("/")[0];
|
||||
const urlStr = url.replace(`${domain}/`, "");
|
||||
const type = urlStr.split("/")[0];
|
||||
const id = urlStr.split("/")[1];
|
||||
const hash = urlStr.split("/")[2];
|
||||
|
||||
const responseMan = await fetch(
|
||||
`/api/proxy/${encodeURIComponent(`https://${domain}/ftor`)}?isNotAnixart=true`,
|
||||
`/api/proxy/${encodeURIComponent(`${domain}/ftor`)}?isNotAnixart=true`,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
|
@ -148,6 +149,7 @@ export const ReleasePlayerCustom = (props: {
|
|||
};
|
||||
|
||||
const _fetchSibnetManifest = async (url: string) => {
|
||||
url = url.replace("https://", "")
|
||||
const response = await fetch(
|
||||
`/api/proxy/${encodeURIComponent(url)}?isSibnet=true`
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue