From 1e4b7955d5f4ec727b5f4181f1c248a791d4be81 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 1 Feb 2026 13:10:38 +0100 Subject: [PATCH] hth multi support --- app/Console/Commands/SyncHTH.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/SyncHTH.php b/app/Console/Commands/SyncHTH.php index a75a697..5f8b4be 100644 --- a/app/Console/Commands/SyncHTH.php +++ b/app/Console/Commands/SyncHTH.php @@ -57,7 +57,14 @@ class SyncHTH extends Command { } private function syncEvent(Event $event): void { - $hthHandle = substr($event->external_schedule, 4); + $hthStr = substr($event->external_schedule, 4); + $hthHandles = explode(',', $hthStr); + foreach ($hthHandles as $hthHandle) { + $this->syncSubevent($event, $hthHandle); + } + } + + private function syncSubevent(Event $event, $hthHandle) { $parts = explode('/', $hthHandle); $hthSeries = $parts[0]; $hthEvent = $parts[1]; -- 2.47.3