diff --git a/src/core/types/models/StremingServer.d.ts b/src/core/types/models/StremingServer.d.ts index 6e6f96f39..f86ee22dc 100644 --- a/src/core/types/models/StremingServer.d.ts +++ b/src/core/types/models/StremingServer.d.ts @@ -27,6 +27,15 @@ type StreamingServerSettings = { transcodeProfile: string | null, }; +type StreamingServerSettingsOption = { + id: string, + label: string, + selections?: { + name: string, + val: string | number | null, + }[], +}; + type SFile = { name: string, path: string, @@ -122,6 +131,7 @@ type StreamingServer = { remoteUrl: string | null, selected: Selected | null, settings: Loadable | null, + settingsOptions: StreamingServerSettingsOption[], torrent: [string, Loadable] | null, statistics: Loadable | null, playbackDevices: Loadable | null, diff --git a/src/routes/Settings/Streaming/Streaming.tsx b/src/routes/Settings/Streaming/Streaming.tsx index 4eac9a0ef..5bea25415 100644 --- a/src/routes/Settings/Streaming/Streaming.tsx +++ b/src/routes/Settings/Streaming/Streaming.tsx @@ -21,6 +21,7 @@ const Streaming = forwardRef(({ profile, streamingServer streamingServerRemoteUrlInput, remoteEndpointSelect, cacheSizeSelect, + cacheLocationSelect, torrentProfileSelect, transcodingProfileSelect, } = useStreamingOptions(streamingServer); @@ -67,6 +68,15 @@ const Streaming = forwardRef(({ profile, streamingServer /> } + { + cacheLocationSelect !== null && + + } { torrentProfileSelect !== null &&