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 { ProviderContext, Stream } from "../types";
import { hubcloudExtractor } from "../extractors/hubcloud";
const headers = {
Accept:
@@ -23,7 +22,8 @@ export async function getStream({
signal: AbortSignal;
providerContext: ProviderContext;
}) {
const { axios, cheerio, commonHeaders } = providerContext;
const { axios, cheerio, extractors } = providerContext;
const { hubcloudExtracter } = extractors;
try {
const streamLinks: Stream[] = [];
@@ -43,13 +43,7 @@ export async function getStream({
});
// --- hubcloud extraction ---
const hubcloudStreams = await hubcloudExtractor(
link,
signal,
axios,
cheerio,
commonHeaders,
);
const hubcloudStreams = await hubcloudExtracter(link, signal);
streamLinks.push(...hubcloudStreams);
return streamLinks;