Modify webui - enable to stream any file - to new tab

This commit is contained in:
Ivan 2024-07-28 13:20:49 +02:00
parent aa2bac8bf5
commit 85a81c55f6
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -39,6 +39,7 @@ export const FormCheckbox: React.FC<{
{labelLink ? (
<a
href={labelLink}
target="_blank"
className="text-blue-600 dark:text-blue-500 hover:underline"
>
{label}