Add audio-only downloads
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
<h1>Download Video</h1>
|
||||
<form method="POST">
|
||||
<input type="url" name="url" placeholder="Video URL" required>
|
||||
<input type="radio" id="audio-video" name="color" value="audio-video" checked>
|
||||
<label for="audio-video">Audio/Video</label>
|
||||
<input type="radio" id="audio-video" name="color" value="audio">
|
||||
<label for="audio">Audio Only</label>
|
||||
|
||||
<button type="submit">Download</button>
|
||||
</form>
|
||||
<a href="/videos">View Downloaded Videos</a>
|
||||
|
@@ -71,6 +71,10 @@
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="footer">
|
||||
<div class="build-id">Build ID: {{.build_id}}</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@@ -31,6 +31,7 @@
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>URL</th>
|
||||
<th>Type</th>
|
||||
<th>Status</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
@@ -44,6 +45,14 @@
|
||||
{{end}}
|
||||
</td>
|
||||
<td><a href="{{.URL}}">{{.URL}}</a></td>
|
||||
<td>
|
||||
{{if .Audio}}
|
||||
Audio
|
||||
{{end}}
|
||||
{{if .Video}}
|
||||
Video
|
||||
{{end}}
|
||||
</td>
|
||||
<td>{{.Status}}</td>
|
||||
<td>
|
||||
{{if eq .Status "completed"}}
|
||||
@@ -68,6 +77,11 @@
|
||||
</table>
|
||||
<p><a href="/download">Download New Video</a></p>
|
||||
<p><a href="/logout">Logout</a></p>
|
||||
|
||||
<div class="footer">
|
||||
<div class="build-id">Build ID: {{.build_id}}</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user