Remove deprecated legacy interval field from setup and settings UI

This commit is contained in:
2026-02-22 17:42:01 +01:00
parent 747e1acc21
commit ddf10327c7
8 changed files with 7 additions and 74 deletions

View File

@@ -144,7 +144,6 @@ AniWorld.MainConfig = (function() {
// Populate scheduler settings
document.getElementById('scheduled-rescan-enabled').checked = config.scheduler?.enabled || false;
document.getElementById('scheduled-rescan-interval').value = config.scheduler?.interval_minutes || 60;
// Populate logging settings
document.getElementById('log-level').value = config.logging?.level || 'INFO';

View File

@@ -82,16 +82,12 @@ AniWorld.SchedulerConfig = (function() {
const autoDownloadEl = document.getElementById('auto-download-after-rescan');
const autoDownload = autoDownloadEl ? autoDownloadEl.checked : false;
const intervalEl = document.getElementById('scheduled-rescan-interval');
const interval = intervalEl ? (parseInt(intervalEl.value) || 60) : 60;
// POST directly to the scheduler config endpoint
const payload = {
enabled: enabled,
schedule_time: scheduleTime,
schedule_days: scheduleDays,
auto_download_after_rescan: autoDownload,
interval_minutes: interval
auto_download_after_rescan: autoDownload
};
const response = await AniWorld.ApiClient.post(API.SCHEDULER_CONFIG, payload);