mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 12:53:24 +00:00
switched to guider
This commit is contained in:
25
.docs/pages/api-reference/ProviderControlslistSources.md
Normal file
25
.docs/pages/api-reference/ProviderControlslistSources.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# `ProviderControls.listSources`
|
||||
|
||||
List all source scrapers that are applicable for the target.
|
||||
They are sorted by rank; highest first
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
const sourceScrapers = providers.listSources();
|
||||
// Guaranteed to only return the type: 'source'
|
||||
```
|
||||
|
||||
## Type
|
||||
|
||||
```ts
|
||||
function listSources(): MetaOutput[];
|
||||
|
||||
type MetaOutput = {
|
||||
type: 'embed' | 'source';
|
||||
id: string;
|
||||
rank: number;
|
||||
name: string;
|
||||
mediaTypes?: Array<MediaTypes>;
|
||||
};
|
||||
```
|
Reference in New Issue
Block a user