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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue