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

This reverts commit ef46918fec.
This commit is contained in:
Himanshu
2026-02-03 21:42:43 +05:30
parent ef46918fec
commit 8c91327af1
220 changed files with 1300 additions and 771 deletions

View File

@@ -2,30 +2,13 @@ import axios from "axios";
import { getBaseUrl } from "./getBaseUrl";
import { headers } from "./headers";
import * as cheerio from "cheerio";
import { hubcloudExtracter } from "./hubcloudExtractor";
import { gofileExtracter } from "./gofileExtracter";
import { superVideoExtractor } from "./superVideoExtractor";
import { gdFlixExtracter } from "./gdflixExtractor";
import { ProviderContext } from "./types";
import Aes from "react-native-aes-crypto";
/**
* Context for provider functions.
* This context is used to pass common dependencies to provider functions.
*/
const extractors = {
hubcloudExtracter,
gofileExtracter,
superVideoExtractor,
gdFlixExtracter,
};
export const providerContext: ProviderContext = {
axios,
getBaseUrl,
commonHeaders: headers,
Aes,
cheerio,
extractors,
};