feat: Add show stream plugin types

This commit is contained in:
Aleksi Lassila
2024-12-22 05:06:02 +02:00
parent 1e15dfac4c
commit d72e3b37c4
7 changed files with 47 additions and 21 deletions

View File

@@ -142,8 +142,18 @@ export interface SourcePlugin {
tmdbId: string,
season: number,
episode: number,
settings: PluginSettings,
) => Promise<any>;
key: string,
context: UserContext,
config?: PlaybackConfig,
) => Promise<VideoStream>;
getEpisodeStreams: (
tmdbId: string,
season: number,
episode: number,
context: UserContext,
config?: PlaybackConfig,
) => Promise<VideoStreamCandidate[]>;
// handleProxy(
// request: { uri: string; headers: any },
@@ -156,7 +166,7 @@ export interface SourcePlugin {
proxyHandler?: (
req: any,
res: any,
options: { context: UserContext; uri: string, targetUrl?: string },
options: { context: UserContext; uri: string; targetUrl?: string },
) => Promise<any>;
}