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.
This commit is contained in:
parent
2ba48f917d
commit
2e6550ec53
3 changed files with 3 additions and 3 deletions
|
|
@ -229,7 +229,7 @@ class ConfigManager:
|
||||||
"staging_path": "./Staging"
|
"staging_path": "./Staging"
|
||||||
},
|
},
|
||||||
"m3u_export": {
|
"m3u_export": {
|
||||||
"enabled": True
|
"enabled": False
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3384,7 +3384,7 @@
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="checkbox-label">
|
<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
|
Auto-save M3U file when downloading playlists and albums
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1846,7 +1846,7 @@ async function loadSettingsData() {
|
||||||
settings.lossy_copy?.enabled ? 'block' : 'none';
|
settings.lossy_copy?.enabled ? 'block' : 'none';
|
||||||
|
|
||||||
// Populate M3U Export settings
|
// 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)
|
// Populate Logging information (read-only)
|
||||||
document.getElementById('log-level-display').textContent = settings.logging?.level || 'INFO';
|
document.getElementById('log-level-display').textContent = settings.logging?.level || 'INFO';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue