mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
feat: add extractors bundled in file refactor stream handling in multiple providers
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user