Add audio-only downloads

This commit is contained in:
Carl Pearson
2024-09-12 17:10:21 -06:00
parent 648ebdd424
commit f8a182aa75
9 changed files with 375 additions and 89 deletions

View File

@@ -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>

View File

@@ -71,6 +71,10 @@
</div>
{{end}}
<div class="footer">
<div class="build-id">Build ID: {{.build_id}}</div>
</div>
</body>
</html>

View File

@@ -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>