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:
rudi123github 2019-07-02 22:41:10 +02:00 committed by GitHub
parent b8f1cf9d53
commit 2f3c577a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -23,7 +23,16 @@ export const SceneFileInfoPanel: FunctionComponent<ISceneFileInfoPanelProps> = (
return ( return (
<tr> <tr>
<td>Path</td> <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> </tr>
); );
} }
@ -114,6 +123,7 @@ export const SceneFileInfoPanel: FunctionComponent<ISceneFileInfoPanelProps> = (
<tbody> <tbody>
{renderChecksum()} {renderChecksum()}
{renderPath()} {renderPath()}
{renderStream()}
{renderFileSize()} {renderFileSize()}
{renderDuration()} {renderDuration()}
{renderDimensions()} {renderDimensions()}