Add MP3 metadata settings and auto-tag uploaded files with title, artist, album, year, genre, comment
This commit is contained in:
parent
98b191ff3c
commit
d74a715216
4 changed files with 130 additions and 30 deletions
|
|
@ -206,6 +206,32 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<!-- MP3 metadata defaults -->
|
||||
<div class="section">
|
||||
<h2>MP3 Metadata Tags</h2>
|
||||
<p class="copy-hint">These values are written into every uploaded MP3 file. The song title from the prompt is written to the Title tag automatically.</p>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="action" value="save_metadata">
|
||||
|
||||
<label for="artist">Artist</label>
|
||||
<input type="text" id="artist" name="artist" value="{{ metadata.get('artist', '') }}" placeholder="e.g. Trollgorithm">
|
||||
|
||||
<label for="album">Album</label>
|
||||
<input type="text" id="album" name="album" value="{{ metadata.get('album', '') }}" placeholder="e.g. Theme Song Booth 2026">
|
||||
|
||||
<label for="year">Year</label>
|
||||
<input type="text" id="year" name="year" value="{{ metadata.get('year', '') }}" placeholder="e.g. 2026">
|
||||
|
||||
<label for="genre">Genre</label>
|
||||
<input type="text" id="genre" name="genre" value="{{ metadata.get('genre', '') }}" placeholder="e.g. Country Metal">
|
||||
|
||||
<label for="comment">Comment</label>
|
||||
<textarea id="comment" name="comment" rows="3" placeholder="e.g. Custom theme song generated at the booth">{{ metadata.get('comment', '') }}</textarea>
|
||||
|
||||
<button type="submit">Save Metadata Defaults</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- System reset -->
|
||||
<div class="danger-zone">
|
||||
<h2>⚠️ Reset System</h2>
|
||||
|
|
|
|||
Reference in a new issue