feat: change amvstrm to point to self hosted instance

This commit is contained in:
2024-08-18 17:05:53 -04:00
parent 30abd1eba8
commit 36aa521bf8
8 changed files with 77 additions and 72 deletions

View File

@@ -3,7 +3,9 @@ import type { FetchUrlResponse } from "./responseType";
export async function getSourcesFromAmvstrm(
watchId: string,
): Promise<FetchUrlResponse | null> {
const source = await fetch(`https://api.amvstr.me/api/v2/stream/${watchId}`)
const source = await fetch(
`https://amvstrm.up.railway.app/api/v2/stream/${watchId}`,
)
.then((res) => res.json<AmvstrmStreamResponse>())
.then(({ stream }) => {
const streamObj = stream?.multi;