// Shared cadence quick-picks for the two DurationFields that set a channel's // schedule: the channel edit form (ChannelForm) and the scheduler page's inline // row editor and bulk bar. Values are the raw minute-count string the field's // hidden input submits; "" (inherit) and "0" (off) are rendered by // DurationField itself from allowInherit/allowOff, so they aren't listed here. export const SYNC_INTERVAL_PRESETS: { value: string; label: string }[] = [ { value: "10", label: "Every 10 minutes" }, { value: "30", label: "Every 30 minutes" }, { value: "60", label: "Hourly" }, { value: "360", label: "Every 6 hours" }, { value: "720", label: "Every 12 hours" }, { value: "1440", label: "Daily" }, { value: "10080", label: "Weekly" }, ]; // Full-sweep quick picks, weighted toward the long end: a sweep re-enumerates // the entire listing in one yt-dlp spawn, so it's a daily-to-weekly concern // where auto-sync is a minutes-to-hours one. Anything between these is still // reachable through the field's Custom… mode. export const FULL_SWEEP_PRESETS: { value: string; label: string }[] = [ { value: "360", label: "Every 6 hours" }, { value: "720", label: "Every 12 hours" }, { value: "1440", label: "Daily" }, { value: "4320", label: "Every 3 days" }, { value: "10080", label: "Weekly" }, { value: "43200", label: "Every 30 days" }, ];