102 lines
3.1 KiB
Cheetah
102 lines
3.1 KiB
Cheetah
{{template "head"}}
|
|
<h2>Libraries</h2>
|
|
<table>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Enabled</th>
|
|
<th>Name</th>
|
|
<th>Path</th>
|
|
<th>TranscodeReplace</th>
|
|
<th>TranscodePath</th>
|
|
<th>ScanNewQueueHealth</th>
|
|
<th>ScanChangedQueueHealth</th>
|
|
<th>ScanNewQueueTranscode</th>
|
|
<th>ScanChangedQueueTranscode</th>
|
|
<th>HealthOkQueueTranscode</th>
|
|
<th>HealthCommand</th>
|
|
<th>TranscodeCommand</th>
|
|
</tr>
|
|
{{range $l := .Libraries}}
|
|
<tr onclick="window.location='/libraries/{{ $l.ID }}';">
|
|
<td>
|
|
{{ $l.ID }}
|
|
</td>
|
|
<td>
|
|
{{ $l.Enable }}
|
|
</td>
|
|
<td>
|
|
{{ $l.Name }}
|
|
</td>
|
|
<td>
|
|
{{ $l.Path }}
|
|
</td>
|
|
<td>
|
|
{{ $l.TranscodeReplace }}
|
|
</td>
|
|
<td>
|
|
{{ $l.TranscodePath }}
|
|
</td>
|
|
<td>
|
|
{{ $l.ScanNewQueueHealth }}
|
|
</td>
|
|
<td>
|
|
{{ $l.ScanChangedQueueHealth }}
|
|
</td>
|
|
<td>
|
|
{{ $l.ScanNewQueueTranscode }}
|
|
</td>
|
|
<td>
|
|
{{ $l.ScanChangedQueueTranscode }}
|
|
</td>
|
|
<td>
|
|
{{ $l.HealthOkQueueTranscode }}
|
|
</td>
|
|
<td>
|
|
{{ $l.HealthCommandID }}
|
|
</td>
|
|
<td>
|
|
{{ $l.TranscodeCommandID }}
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
|
|
<h2>New Library</h2>
|
|
<form method="POST">
|
|
<label>Enable:</label>
|
|
<input type="checkbox" name="enable">
|
|
<label>Name:</label>
|
|
<input type="text" name="name">
|
|
<label>Path:</label>
|
|
<input type="text" name="path">
|
|
<label>Transcode Replace:</label>
|
|
<input type="checkbox" name="transcode_replace">
|
|
<label>Transcode Path:</label>
|
|
<input type="text" name="transcode_path">
|
|
<label>Queue Heathcheck for new files on Scan:</label>
|
|
<input type="checkbox" name="scan_new_queue_health">
|
|
<label>Queue Heathcheck for changed files on Scan (Not Implemented):</label>
|
|
<input type="checkbox" name="scan_changed_queue_health">
|
|
<label>Queue Transcode for new files on Scan (Not Implemented):</label>
|
|
<input type="checkbox" name="scan_new_queue_transcode">
|
|
<label>Queue Transcode for changed files on Scan (Not Implemented):</label>
|
|
<input type="checkbox" name="scan_changed_queue_transcode">
|
|
<label>Queue Transcode on Healthcheck Success:</label>
|
|
<input type="checkbox" name="health_ok_queue_transcode">
|
|
<label for="health_command_id">Health Command:</label>
|
|
<select id="health_command_id" name="health_command_id">
|
|
<option value="">None</option>
|
|
{{range $l := .FfmpegCommands}}
|
|
<option value="{{$l.ID}}">{{$l.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
<label for="transcode_command_id">Transcode Command:</label>
|
|
<select id="transcode_command_id" name="transcode_command_id">
|
|
<option value="">None</option>
|
|
{{range $l := .FfmpegCommands}}
|
|
<option value="{{$l.ID}}">{{$l.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
{{template "tail"}}
|