From 3894b1c7d99e9673dd62b773a5db443565d1c497 Mon Sep 17 00:00:00 2001 From: "Timothy Z." Date: Tue, 19 May 2026 23:21:53 +0300 Subject: [PATCH] feat: add cache drive option --- src/core/types/models/StremingServer.d.ts | 10 +++++ src/routes/Settings/Streaming/Streaming.tsx | 10 +++++ .../Settings/Streaming/useStreamingOptions.ts | 42 +++++++++++++++++++ 3 files changed, 62 insertions(+) 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 &&