Modify webui - enable to stream any file - to new tab
This commit is contained in:
parent
aa2bac8bf5
commit
85a81c55f6
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue