mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:43:25 +00:00
remove dots from filenames
This commit is contained in:
24
.docs/content/2.Api/6.ProviderControlsgetMetadata.md
Normal file
24
.docs/content/2.Api/6.ProviderControlsgetMetadata.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# `ProviderControls.getMetadata`
|
||||
|
||||
Get meta data for a scraper, can be either source or embed scraper.
|
||||
Returns null if id is not recognized.
|
||||
|
||||
## 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>;
|
||||
};
|
||||
```
|
Reference in New Issue
Block a user