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

@@ -219,6 +219,14 @@ export default class JellyfinPlugin implements SourcePlugin {
});
}
getEpisodeStreams: (
tmdbId: string,
season: number,
episode: number,
context: UserContext,
config?: PlaybackConfig,
) => Promise<VideoStreamCandidate[]>;
async getMovieStream(
tmdbId: string,
key: string,
@@ -396,7 +404,7 @@ export default class JellyfinPlugin implements SourcePlugin {
}
class PluginContext {
api: JellyfinApi<{}>;
api: JellyfinApi<unknown>;
settings: JellyfinSettings;
token: string;