This commit is contained in:
mrjvs
2023-12-29 17:47:49 +01:00
parent a1e172125c
commit cd7368d980
10 changed files with 18 additions and 18 deletions

View File

@@ -66,7 +66,7 @@ const myFetcher: Fetcher = (url, ops) => {
// Do some fetching
return {
body: {},
finalUrl: "",
finalUrl: '',
headers: new Headers(), // should only contain headers from ops.readHeaders
statusCode: 200,
};

View File

@@ -67,7 +67,7 @@ const providers = buildProviders()
rank: 800,
flags: [],
scrapeMovie(ctx) {
throw new Error("Not implemented");
throw new Error('Not implemented');
}
})
.build();

View File

@@ -75,7 +75,7 @@ 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'
type: CaptionType; // language type, either "srt" or "vtt"
id: string; // only 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