Skip to content

Commit 6370cbb

Browse files
authored
add handling for MovieDelete events in webhook processing (#5)
1 parent 543ca5b commit 6370cbb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,9 @@ async def process_webhook(payload: Dict[str, Any], event_type: str, webhook_id:
12781278
}
12791279
else:
12801280
result = {"status": "ignored", "reason": f"No instances configured for {event_type}"}
1281+
elif event_type in ["MovieDelete", "MovieFileDelete"]:
1282+
logger.info(f" ├─ Received {event_type} event, syncing deletion and scanning media servers")
1283+
result = await handle_radarr_delete(payload, valid_instances, sync_interval, config)
12811284
else:
12821285
result = {"status": "ignored", "reason": f"No instances configured for {event_type}"}
12831286
else:

0 commit comments

Comments
 (0)