Disable M3U export by default

Set m3u_export.enabled default to false and update the UI so the M3U auto-save checkbox is unchecked unless explicitly enabled. Changes: config/settings.py flips the default to false, webui/index.html removes the checked attribute from the checkbox, and webui/static/script.js adjusts the logic to only check the box when settings.m3u_export.enabled === true. This prevents automatic M3U exports for users who don't explicitly opt in.
pull/165/head
Broque Thomas 3 months ago
parent 2ba48f917d
commit 2e6550ec53

@ -229,7 +229,7 @@ class ConfigManager:
"staging_path": "./Staging"
},
"m3u_export": {
"enabled": True
"enabled": False
}
}

@ -3384,7 +3384,7 @@
<div class="form-group">
<label class="checkbox-label">
<input type="checkbox" id="m3u-export-enabled" checked>
<input type="checkbox" id="m3u-export-enabled">
Auto-save M3U file when downloading playlists and albums
</label>
</div>

@ -1846,7 +1846,7 @@ async function loadSettingsData() {
settings.lossy_copy?.enabled ? 'block' : 'none';
// Populate M3U Export settings
document.getElementById('m3u-export-enabled').checked = settings.m3u_export?.enabled !== false;
document.getElementById('m3u-export-enabled').checked = settings.m3u_export?.enabled === true;
// Populate Logging information (read-only)
document.getElementById('log-level-display').textContent = settings.logging?.level || 'INFO';

Loading…
Cancel
Save