add album downloading and rewrite cache

This commit is contained in:
Reid 2025-08-28 16:03:46 -07:00
parent f2800f13c8
commit a3cefee49a
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
33 changed files with 2573 additions and 277 deletions

View file

@ -0,0 +1,9 @@
<form class="download-form" action="/api/downloadAlbum" method="get">
<select name="codec">
{{#each codecs as |codec|}}
<option value="{{codec}}">{{codec}}</option>
{{/each}}
</select>
<input type="hidden" name="id" value="{{id}}">
<input type="submit" value="download!">
</form>

View file

@ -1,5 +1,9 @@
{{#if id}}
<a href="/download?id={{id}}">dl</a>
{{#if isAlbum}}
<a href="/downloadAlbum?id={{id}}">dl</a>
{{else}}
<a href="/download?id={{id}}">dl</a>
{{/if}}
{{else}}
<span class="light">dl</span>
{{/if}}

View file

@ -5,6 +5,7 @@
<h2>{{name}}</h2>
<span class="light">{{arrayJoin artists ", "}}</span>
</div>
{{> download}}
</div>
<hr>
<ol class="result-tracklist">