mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add anchor to scene path, and display stream anchor
This allows to play videos which are not supported by JWplayer. Stash will display links to the local file and the stream in the "File Info" panel. This allows to open the stream or local file directly in the browser (if supported) or the app that is registered for the respective file type (e.g. VLC).
This commit is contained in:
@@ -23,7 +23,16 @@ export const SceneFileInfoPanel: FunctionComponent<ISceneFileInfoPanelProps> = (
|
||||
return (
|
||||
<tr>
|
||||
<td>Path</td>
|
||||
<td>{props.scene.path}</td>
|
||||
<td><a href={"file://"+props.scene.path}>{"file://"+props.scene.path}</a> </td>
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
function renderStream() {
|
||||
return (
|
||||
<tr>
|
||||
<td>Stream</td>
|
||||
<td><a href={props.scene.paths.stream}>{props.scene.paths.stream}</a> </td>
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
@@ -114,6 +123,7 @@ export const SceneFileInfoPanel: FunctionComponent<ISceneFileInfoPanelProps> = (
|
||||
<tbody>
|
||||
{renderChecksum()}
|
||||
{renderPath()}
|
||||
{renderStream()}
|
||||
{renderFileSize()}
|
||||
{renderDuration()}
|
||||
{renderDimensions()}
|
||||
|
||||
Reference in New Issue
Block a user