Download Stems button now zips all stem files into a single .zip
- New /admin/request/<id>/download-stems endpoint - Parses stems_url (label: url; label: url format), fetches each stem file, bundles them into a zip served as an attachment download - If MusicGPT returns a single .zip bundle URL, redirects directly - Template button now points to the zip endpoint instead of raw CDN URLs
This commit is contained in:
parent
c676acd32f
commit
f2c64848dd
2 changed files with 73 additions and 1 deletions
|
|
@ -618,7 +618,7 @@
|
|||
{% endif %}
|
||||
{% if req.stems_url %}
|
||||
<div class="actions">
|
||||
<a href="{{ req.stems_url }}" target="_blank" rel="noopener noreferrer" class="button-link" style="display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;background:#4b5563;border-radius:.375rem;color:#fff;text-decoration:none;font-size:.875rem">⬇ Download Stems</a>
|
||||
<a href="{{ url_for('admin_download_stems', rid=req.id) }}" class="button-link" style="display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;background:#4b5563;border-radius:.375rem;color:#fff;text-decoration:none;font-size:.875rem">⬇ Download Stems (zip)</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue