Revert "feat: add extractors bundled in file refactor stream handling in multiple providers"

This reverts commit 13d41f9da6.
This commit is contained in:
Himanshu
2026-02-02 23:44:25 +05:30
parent 13d41f9da6
commit ef46918fec
220 changed files with 771 additions and 1300 deletions

View File

@@ -1,5 +1,4 @@
import { Stream, ProviderContext } from "../types";
import { gofileExtractor } from "../extractors/gofile";
function LALLJLutmoZpvvbikjaWM(str: string): ArrayBuffer {
var buf = new ArrayBuffer(str.length * 2);
@@ -24,7 +23,13 @@ export const getStream = async function ({
link: string;
providerContext: ProviderContext;
}): Promise<Stream[]> {
const { axios, cheerio, commonHeaders: headers } = providerContext;
const {
axios,
cheerio,
commonHeaders: headers,
extractors,
} = providerContext;
const { gofileExtracter } = extractors;
function generateMessageToken(baseUrlL: string): string {
const hostname = baseUrlL?.replace(/https?:\/\//, "").split("/")[0];
console.log("generateMessageToken hostname", hostname);
@@ -165,15 +170,14 @@ export const getStream = async function ({
id: idData,
});
console.log("idData", idData);
}),
})
);
await Promise.all(
secondIdList.map(async (id) => {
const idRes = await axios.post(`${baseUrl}/tmp/${id.id}`);
if (idRes.data.ppd["gofile.io"]) {
const goRes = await gofileExtractor(
idRes.data.ppd["gofile.io"].link.split("/").pop(),
axios,
const goRes = await gofileExtracter(
idRes.data.ppd["gofile.io"].link.split("/").pop()
);
console.log("link", goRes.link);
if (goRes.link) {
@@ -190,7 +194,7 @@ export const getStream = async function ({
});
}
}
}),
})
);
return streamLinks;