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) => {
|
const fileLink = (file: TorrentFileForCheckbox) => {
|
||||||
if (
|
if (
|
||||||
allowStream &&
|
allowStream &&
|
||||||
torrentId != null &&
|
torrentId != null
|
||||||
/\.(mp4|mkv|avi)$/.test(file.filename)
|
|
||||||
) {
|
) {
|
||||||
return API.getTorrentStreamUrl(torrentId, file.id, file.filename);
|
return API.getTorrentStreamUrl(torrentId, file.id, file.filename);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ export const FormCheckbox: React.FC<{
|
||||||
{labelLink ? (
|
{labelLink ? (
|
||||||
<a
|
<a
|
||||||
href={labelLink}
|
href={labelLink}
|
||||||
|
target="_blank"
|
||||||
className="text-blue-600 dark:text-blue-500 hover:underline"
|
className="text-blue-600 dark:text-blue-500 hover:underline"
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue