mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-20 03:53:31 +02:00
feat: Add show stream plugin types
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { generateApi } from 'swagger-typescript-api';
|
||||
import * as path from 'path';
|
||||
|
||||
console.log(path.join(require.main.path, '..', 'plugins'));
|
||||
generateApi({
|
||||
name: 'jellyfin.openapi.ts',
|
||||
url: 'https://api.jellyfin.org/openapi/jellyfin-openapi-stable.json',
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user