Add GUI for Path Templating and enrich metadata, added api endpoints to create and store path templates#173
Merged
Conversation
* Update downloader.go Make it impossible to mess up track.File * Update downloader.go
…s possible with paths
…ST, DELETE). - Added toggles for ENRICH_METADATA and PATH_TEMPLATE
Owner
|
Thanks :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds GUI controls for
ENRICH_TRACK_METADATAandPATH_TEMPLATE, envs that previously required manually editing the config file. Making it much more user friendly for users to understand what the toggle does.Organize into folders — toggle that enables PATH_TEMPLATE. Pick from built-in folder structure presets or build your own with a variable chip editor. Active template is previewed inline before saving. User presets are stored in
path-templates.jsonin the data directory.API keys and passwords are hidden as •••••••• in the read-only config view.

New endpoints
POST /api/ui/config/path-template — save active template to .env
POST /api/ui/config/enrich-metadata — toggle ENRICH_TRACK_METADATA in .env
GET/POST /api/ui/path-templates — list / add saved presets
DELETE /api/ui/path-templates/{name} — remove a preset