mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:43:25 +00:00
Capitalization
This commit is contained in:
@@ -75,10 +75,10 @@ If your target is set to `BROWSER`. There will never be required headers, as it'
|
||||
All streams have a list of captions at `Stream.captions`. The structure looks like this:
|
||||
```ts
|
||||
type Caption = {
|
||||
type: CaptionType; // language type, either "srt" or "vtt"
|
||||
id: string; // only unique per stream
|
||||
url: string; // the url pointing to the subtitle file
|
||||
type: CaptionType; // Language type, either "srt" or "vtt"
|
||||
id: string; // Unique per stream
|
||||
url: string; // The url pointing to the subtitle file
|
||||
hasCorsRestrictions: boolean; // If true, you will need to proxy it if you're running in a browser
|
||||
language: string; // language code of the caption
|
||||
language: string; // Language code of the caption
|
||||
};
|
||||
```
|
||||
|
@@ -64,7 +64,7 @@ npm run cli -- -sid febbox-mp4 -u URL_HERE
|
||||
|
||||
The CLI comes with a few built-in fetchers:
|
||||
- `node-fetch`: Fetch using the "node-fetch" library.
|
||||
- `native`: Use the new fetch built into nodejs (undici).
|
||||
- `native`: Use the new fetch built into Node.JS (undici).
|
||||
- `browser`: Start up headless chrome, and run the library in that context using a proxied fetcher.
|
||||
|
||||
::alert{type="warning"}
|
||||
|
@@ -25,7 +25,7 @@ interface ProviderBuilderOptions {
|
||||
|
||||
// instance of a fetcher, in case the request has cors restrictions.
|
||||
// this fetcher will be called instead of normal fetcher.
|
||||
// if your environment doesnt have cors restrictions (like nodejs), there is no need to set this.
|
||||
// if your environment doesnt have cors restrictions (like Node.JS), there is no need to set this.
|
||||
proxiedFetcher?: Fetcher;
|
||||
|
||||
// target to get streams for
|
||||
|
Reference in New Issue
Block a user