mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 15:03:26 +00:00
spelling/grammar
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# `ProviderControls.runSourceScraper`
|
||||
|
||||
Run a specific source scraper and get its outputted streams.
|
||||
Run a specific source scraper and get its emitted streams.
|
||||
|
||||
## Example
|
||||
|
||||
@@ -24,7 +24,7 @@ try {
|
||||
})
|
||||
} catch (err) {
|
||||
if (err instanceof NotFoundError) {
|
||||
console.log('source doesnt have this media');
|
||||
console.log('source does not have this media');
|
||||
} else {
|
||||
console.log('failed to scrape')
|
||||
}
|
||||
@@ -48,13 +48,13 @@ interface SourceRunnerOptions {
|
||||
// the media you want to see sources from
|
||||
media: ScrapeMedia;
|
||||
|
||||
// id of the source scraper you want to scrape from
|
||||
// ID of the source scraper you want to scrape from
|
||||
id: string;
|
||||
}
|
||||
|
||||
type SourcererOutput = {
|
||||
// list of embeds that the source scraper found.
|
||||
// embed id is a reference to an embed scraper
|
||||
// embed ID is a reference to an embed scraper
|
||||
embeds: {
|
||||
embedId: string;
|
||||
url: string;
|
||||
|
Reference in New Issue
Block a user