mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
callback events
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { Fetcher } from '@/fetchers/types';
|
||||
import { FullScraperEvents } from '@/main/events';
|
||||
import { Stream } from '@/providers/streams';
|
||||
|
||||
export type RunOutput = {
|
||||
sourceId: string;
|
||||
fromEmbed: boolean;
|
||||
embedId?: string;
|
||||
stream: Stream;
|
||||
};
|
||||
|
||||
@@ -16,3 +18,18 @@ export type EmbedRunOutput = {
|
||||
embedId: string;
|
||||
stream?: Stream;
|
||||
};
|
||||
|
||||
export type ProviderRunnerOptions = {
|
||||
fetcher: Fetcher;
|
||||
proxiedFetcher: Fetcher;
|
||||
};
|
||||
|
||||
export async function runAllProviders(_ops: ProviderRunnerOptions, _cbs: FullScraperEvents): Promise<RunOutput | null> {
|
||||
return {
|
||||
sourceId: '123',
|
||||
stream: {
|
||||
type: 'file',
|
||||
qualities: {},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user