From cd7368d980555825a46f84481f6b025a8133b007 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Fri, 29 Dec 2023 17:47:49 +0100 Subject: [PATCH] Quotes --- .docs/content/2.essentials/2.fetchers.md | 2 +- .docs/content/2.essentials/3.customize-providers.md | 2 +- .docs/content/2.essentials/4.using-streams.md | 2 +- .docs/content/4.extra-topics/0.development.md | 2 +- .docs/content/5.api-reference/0.makeProviders.md | 2 +- .../5.api-reference/1.ProviderControlsRunAll.md | 4 ++-- .../2.ProviderControlsrunSourceScraper.md | 12 ++++++------ .../3.ProviderControlsrunEmbedScraper.md | 4 ++-- .../content/5.api-reference/7.makeStandardFetcher.md | 2 +- .../5.api-reference/8.makeSimpleProxyFetcher.md | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.docs/content/2.essentials/2.fetchers.md b/.docs/content/2.essentials/2.fetchers.md index 78d83e7..2da3831 100644 --- a/.docs/content/2.essentials/2.fetchers.md +++ b/.docs/content/2.essentials/2.fetchers.md @@ -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, }; diff --git a/.docs/content/2.essentials/3.customize-providers.md b/.docs/content/2.essentials/3.customize-providers.md index ad1a78f..a37c846 100644 --- a/.docs/content/2.essentials/3.customize-providers.md +++ b/.docs/content/2.essentials/3.customize-providers.md @@ -67,7 +67,7 @@ const providers = buildProviders() rank: 800, flags: [], scrapeMovie(ctx) { - throw new Error("Not implemented"); + throw new Error('Not implemented'); } }) .build(); diff --git a/.docs/content/2.essentials/4.using-streams.md b/.docs/content/2.essentials/4.using-streams.md index eafbb94..5812fe3 100644 --- a/.docs/content/2.essentials/4.using-streams.md +++ b/.docs/content/2.essentials/4.using-streams.md @@ -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 diff --git a/.docs/content/4.extra-topics/0.development.md b/.docs/content/4.extra-topics/0.development.md index 13cc1df..fef430e 100644 --- a/.docs/content/4.extra-topics/0.development.md +++ b/.docs/content/4.extra-topics/0.development.md @@ -56,7 +56,7 @@ npm run cli -- -sid flixhq -tid 556574 # Arcane S1E1 - showbox npm run cli -- -sid zoechip -tid 94605 -s 1 -e 1 -# febbox mp4 - +# febbox mp4 - get streams from an embed (gotten from a source output) npm run cli -- -sid febbox-mp4 -u URL_HERE ``` diff --git a/.docs/content/5.api-reference/0.makeProviders.md b/.docs/content/5.api-reference/0.makeProviders.md index 409b87f..3811c90 100644 --- a/.docs/content/5.api-reference/0.makeProviders.md +++ b/.docs/content/5.api-reference/0.makeProviders.md @@ -6,7 +6,7 @@ This is the main entrypoint of the library. It is recommended to make one instan ## Example ```ts -import { targets, makeProviders, makeDefaultFetcher } from "@movie-web/providers"; +import { targets, makeProviders, makeDefaultFetcher } from '@movie-web/providers'; const providers = makeProviders({ fetcher: makeDefaultFetcher(fetch), diff --git a/.docs/content/5.api-reference/1.ProviderControlsRunAll.md b/.docs/content/5.api-reference/1.ProviderControlsRunAll.md index 7633381..21999ef 100644 --- a/.docs/content/5.api-reference/1.ProviderControlsRunAll.md +++ b/.docs/content/5.api-reference/1.ProviderControlsRunAll.md @@ -9,9 +9,9 @@ You can attach events if you need to know what is going on while its processing. // media from TMDB const media = { type: 'movie', - title: "Hamilton", + title: 'Hamilton', releaseYear: 2020, - tmdbId: "556574" + tmdbId: '556574' } // scrape a stream diff --git a/.docs/content/5.api-reference/2.ProviderControlsrunSourceScraper.md b/.docs/content/5.api-reference/2.ProviderControlsrunSourceScraper.md index e369880..341d77b 100644 --- a/.docs/content/5.api-reference/2.ProviderControlsrunSourceScraper.md +++ b/.docs/content/5.api-reference/2.ProviderControlsrunSourceScraper.md @@ -5,14 +5,14 @@ Run a specific source scraper and get its outputted streams. ## Example ```ts -import { SourcererOutput, NotFoundError } from "@movie-web/providers"; +import { SourcererOutput, NotFoundError } from '@movie-web/providers'; // media from TMDB const media = { type: 'movie', - title: "Hamilton", + title: 'Hamilton', releaseYear: 2020, - tmdbId: "556574" + tmdbId: '556574' } // scrape a stream from flixhq @@ -24,15 +24,15 @@ try { }) } catch (err) { if (err instanceof NotFoundError) { - console.log("source doesnt have this media"); + console.log('source doesnt have this media'); } else { - console.log("failed to scrape") + console.log('failed to scrape') } return; } if (!output.stream && output.embeds.length === 0) { - console.log("no streams found"); + console.log('no streams found'); } ``` diff --git a/.docs/content/5.api-reference/3.ProviderControlsrunEmbedScraper.md b/.docs/content/5.api-reference/3.ProviderControlsrunEmbedScraper.md index bfdd0b2..ceb9870 100644 --- a/.docs/content/5.api-reference/3.ProviderControlsrunEmbedScraper.md +++ b/.docs/content/5.api-reference/3.ProviderControlsrunEmbedScraper.md @@ -5,7 +5,7 @@ Run a specific embed scraper and get its outputted streams. ## Example ```ts -import { SourcererOutput } from "@movie-web/providers"; +import { SourcererOutput } from '@movie-web/providers'; // scrape a stream from upcloud let output: EmbedOutput; @@ -15,7 +15,7 @@ try { url: 'https://example.com/123', }) } catch (err) { - console.log("failed to scrape") + console.log('failed to scrape') return; } diff --git a/.docs/content/5.api-reference/7.makeStandardFetcher.md b/.docs/content/5.api-reference/7.makeStandardFetcher.md index 8544243..a7e5e76 100644 --- a/.docs/content/5.api-reference/7.makeStandardFetcher.md +++ b/.docs/content/5.api-reference/7.makeStandardFetcher.md @@ -5,7 +5,7 @@ Make a fetcher from a `fetch()` API. It is used for making a instance of provide ## Example ```ts -import { targets, makeProviders, makeDefaultFetcher } from "@movie-web/providers"; +import { targets, makeProviders, makeDefaultFetcher } from '@movie-web/providers'; const providers = makeProviders({ fetcher: makeStandardFetcher(fetch), diff --git a/.docs/content/5.api-reference/8.makeSimpleProxyFetcher.md b/.docs/content/5.api-reference/8.makeSimpleProxyFetcher.md index 81dd010..3f5f76a 100644 --- a/.docs/content/5.api-reference/8.makeSimpleProxyFetcher.md +++ b/.docs/content/5.api-reference/8.makeSimpleProxyFetcher.md @@ -5,9 +5,9 @@ Make a fetcher to use with [movie-web/simple-proxy](https://github.com/movie-web ## Example ```ts -import { targets, makeProviders, makeDefaultFetcher, makeSimpleProxyFetcher } from "@movie-web/providers"; +import { targets, makeProviders, makeDefaultFetcher, makeSimpleProxyFetcher } from '@movie-web/providers'; -const proxyUrl = "https://your.proxy.workers.dev/" +const proxyUrl = 'https://your.proxy.workers.dev/' const providers = makeProviders({ fetcher: makeDefaultFetcher(fetch),