From 4bc2a88f9bc4971b3d60e9efe6ddc0b693e94106 Mon Sep 17 00:00:00 2001 From: Viren070 Date: Thu, 20 Nov 2025 21:24:48 +0000 Subject: [PATCH] feat(frontend/formatter): add private switch to preview --- packages/frontend/src/components/menu/formatter.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/frontend/src/components/menu/formatter.tsx b/packages/frontend/src/components/menu/formatter.tsx index c0fb8531..676275b0 100644 --- a/packages/frontend/src/components/menu/formatter.tsx +++ b/packages/frontend/src/components/menu/formatter.tsx @@ -161,6 +161,7 @@ function Content() { const [type, setType] = useState<(typeof constants.STREAM_TYPES)[number]>('debrid'); const [library, setLibrary] = useState(false); + const [privateTorrent, setPrivateTorrent] = useState(false); const [duration, setDuration] = useState(9120000); // 2h 32m in milliseconds const [fileSize, setFileSize] = useState(62500000000); // 58.2 GB in bytes const [folderSize, setFolderSize] = useState( @@ -246,6 +247,7 @@ function Content() { torrent: { infoHash: type === 'p2p' ? '1234567890' : undefined, seeders, + private: privateTorrent, }, service: providerId === 'none' @@ -282,6 +284,7 @@ function Content() { isCached, type, library, + privateTorrent, duration, fileSize, folderSize, @@ -305,6 +308,7 @@ function Content() { isCached, type, library, + privateTorrent, duration, fileSize, folderSize, @@ -584,6 +588,11 @@ function Content() { value={library} onValueChange={setLibrary} /> + Private} + value={privateTorrent} + onValueChange={setPrivateTorrent} + /> Proxied} value={proxied}