mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 15:03:26 +00:00
Redo folder structure
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# `ProviderControls.listSources`
|
||||
|
||||
List all source scrapers that applicable for the target.
|
||||
They are sorted by rank, highest first
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
const sourceScrapers = providers.listSources();
|
||||
// Guaranteed to only return 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