From: Daniel Karbach Date: Sun, 1 Feb 2026 12:10:38 +0000 (+0100) Subject: hth multi support X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=1e4b7955d5f4ec727b5f4181f1c248a791d4be81;p=alttp.git hth multi support --- 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];