mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 12:33:25 +00:00
430 B
430 B
ProviderControls.getMetadata
Get meta data for a scraper, can be either source or embed scraper.
Returns null
if the id
is not recognized.
Example
const flixhqSource = providers.getMetadata('flixhq');
Type
function getMetadata(id: string): MetaOutput | null;
type MetaOutput = {
type: 'embed' | 'source';
id: string;
rank: number;
name: string;
mediaTypes?: Array<MediaTypes>;
};