ongoing polish in queue handling

This commit is contained in:
Bryan Van Deusen
2026-01-28 09:32:47 -05:00
parent c7a259a63b
commit 575e20f58c
9 changed files with 738 additions and 69 deletions
+14 -2
View File
@@ -18,7 +18,7 @@
type="number"
min="1"
max="10"
hint="Maximum number of concurrent downloads (1-10)"
hint="Maximum concurrent downloads (1-10). Requires container restart to take effect."
persistent-hint
/>
</v-col>
@@ -54,7 +54,7 @@
label="Schedule Interval (seconds)"
type="number"
min="300"
hint="How often to check for new content (minimum 5 minutes)"
:hint="scheduleIntervalHint"
persistent-hint
/>
</v-col>
@@ -419,6 +419,18 @@ const sortedAllPackages = computed(() => {
return sorted
})
const scheduleIntervalHint = computed(() => {
const seconds = settings.value['download.schedule_interval'] || 3600
if (seconds < 60) return `Check every ${seconds} seconds`
if (seconds < 3600) return `Check every ${Math.round(seconds / 60)} minutes`
if (seconds < 86400) {
const hours = seconds / 3600
return `Check every ${hours % 1 === 0 ? hours : hours.toFixed(1)} hours`
}
const days = seconds / 86400
return `Check every ${days % 1 === 0 ? days : days.toFixed(1)} days`
})
onMounted(() => {
// Don't block UI - load data in background
loadAll()