1import { fetch as proxiedFetch } from "https://esm.town/v/std/fetch";
2import { customAlphabet } from "npm:nanoid";
3const nanoid = customAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 10);
7 let url = ctx.url;
8 if (ctx.url.includes("primewire")) {
9 const request = await fetch(ctx.url);
10 }
11 const id = url.split("/d/")[1] || url.split("/e/")[1];
12
13 const doodDataReq = await fetch(
14 `https://structural-sidonia-supergalaxy-4284f8da.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
15 + encodeURIComponent(`${baseUrl}/e/${id}`),
24 const thumbnailTrack = doodData.match(/thumbnails:\s\{\s*vtt:\s'([^']*)'/);
25 console.log(path);
26 const doodPageReq = await fetch(
27 `https://structural-sidonia-supergalaxy-4284f8da.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
28 + encodeURIComponent(`${baseUrl}/pass_md5${path}`),
94 // if (Number(_) > 100000) throw new Error("limit reached");
95 // await blob.set("streamtapeLimit", `${Number(_) + 1}`);
96 const _embed = await proxiedFetch(
97 `https://proxy-worker.thunderspeed.workers.dev/proxy?destination=${encodeURIComponent(ctx.url)}`,
98 );
129
130export async function streamium(ctx) {
131 const _embed = await fetch(ctx.url);
132 // https://pump.watchfree.ax/start-play?imdbid=tt11389872&name=apple&season=&episode=
133 const embed = await _embed.text();