diff --git a/webui/static/script.js b/webui/static/script.js index 31c79afc..85131682 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -42435,8 +42435,17 @@ async function showReorganizeModal(albumId) { html += '
'; html += ''; html += '
Use / to separate folders. The last segment becomes the filename.
'; + // Load saved template from settings, fall back to default + let savedTemplate = '$albumartist/$albumartist - $album/$track - $title'; + try { + const settingsResp = await fetch('/api/settings'); + if (settingsResp.ok) { + const settings = await settingsResp.json(); + savedTemplate = settings.file_organization?.templates?.album_path || savedTemplate; + } + } catch (_) {} html += '