From d925c34ce5c78942c1ef19e06308ba9ca8729c39 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Sun, 21 Jun 2026 09:53:28 -0700 Subject: [PATCH] Video auto-wishlist: schedule the automation so it actually fires MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The system automation used trigger_type 'daily_time' with no initial_delay, but the seeder only arms a next_run when a spec has initial_delay (and _calc_delay_seconds doesn't parse a daily_time clock anyway) — so it registered as 'event-based' and never auto-ran; it only fired when triggered by hand. Switched to the proven scheduled pattern (24h 'schedule' + initial_delay, like Auto-Scan Watchlist) so it runs once a day on its own. --- core/automation_engine.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/automation_engine.py b/core/automation_engine.py index 77a95bca..d1c8e0b6 100644 --- a/core/automation_engine.py +++ b/core/automation_engine.py @@ -170,13 +170,15 @@ SYSTEM_AUTOMATIONS = [ 'action_config': {'mode': 'incremental'}, 'owned_by': 'video', }, - # Sonarr-style: each day, wishlist every episode airing today for the shows you - # follow (skipping ones already owned) so they queue up to be grabbed. + # Sonarr-style: once a day, wishlist every episode airing today for the shows you + # follow (skipping ones already owned) so they queue up to be grabbed. Uses a 24h + # 'schedule' (not 'daily_time', which the seeder doesn't arm) so it actually fires. { 'name': 'Auto-Wishlist Episodes Airing Today', - 'trigger_type': 'daily_time', - 'trigger_config': {'time': '01:00'}, + 'trigger_type': 'schedule', + 'trigger_config': {'interval': 24, 'unit': 'hours'}, 'action_type': 'video_add_airing_episodes', + 'initial_delay': 300, # 5 minutes after startup, then daily 'owned_by': 'video', }, ]