From 85a81c55f60905766ee6781601994ccbcae02e94 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 28 Jul 2024 13:20:49 +0200 Subject: [PATCH] Modify webui - enable to stream any file - to new tab --- crates/librqbit/webui/src/components/FileListInput.tsx | 3 +-- crates/librqbit/webui/src/components/forms/FormCheckbox.tsx | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/librqbit/webui/src/components/FileListInput.tsx b/crates/librqbit/webui/src/components/FileListInput.tsx index 9ec5410..323ba1c 100644 --- a/crates/librqbit/webui/src/components/FileListInput.tsx +++ b/crates/librqbit/webui/src/components/FileListInput.tsx @@ -158,8 +158,7 @@ const FileTreeComponent: React.FC<{ const fileLink = (file: TorrentFileForCheckbox) => { if ( allowStream && - torrentId != null && - /\.(mp4|mkv|avi)$/.test(file.filename) + torrentId != null ) { return API.getTorrentStreamUrl(torrentId, file.id, file.filename); } diff --git a/crates/librqbit/webui/src/components/forms/FormCheckbox.tsx b/crates/librqbit/webui/src/components/forms/FormCheckbox.tsx index dbe4f12..f2e0a47 100644 --- a/crates/librqbit/webui/src/components/forms/FormCheckbox.tsx +++ b/crates/librqbit/webui/src/components/forms/FormCheckbox.tsx @@ -39,6 +39,7 @@ export const FormCheckbox: React.FC<{ {labelLink ? ( {label}