providers/.docs/content/5.api-reference/6.ProviderControlsgetMetada...

25 lines
430 B
Markdown
Raw Normal View History

2023-09-27 17:00:40 +00:00
# `ProviderControls.getMetadata`
Get meta data for a scraper, can be either source or embed scraper.
2023-12-31 03:35:48 +00:00
Returns `null` if the `id` is not recognized.
2023-09-27 17:00:40 +00:00
## Example
```ts
const flixhqSource = providers.getMetadata('flixhq');
```
## Type
```ts
function getMetadata(id: string): MetaOutput | null;
type MetaOutput = {
type: 'embed' | 'source';
id: string;
rank: number;
name: string;
mediaTypes?: Array<MediaTypes>;
};
```