]> git.localhorst.tv Git - alttp.git/commitdiff
set hth game number if available
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 9 Jul 2025 08:25:44 +0000 (10:25 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 9 Jul 2025 08:25:44 +0000 (10:25 +0200)
app/Console/Commands/SyncHTH.php

index 5c516b8fd073b4aa852921678e955fdef4b4c194..a101423451f12579587593385ec7af7870c00f9a 100644 (file)
@@ -78,6 +78,7 @@ class SyncHTH extends Command {
                                                        room
                                                        phase
                                                        round
+                                                       game
                                                        teams {
                                                        name
                                                        members {
@@ -120,6 +121,9 @@ class SyncHTH extends Command {
                }
                $episode->event()->associate($event);
                $episode->title = $hthEntry['phase'].' '.$hthEntry['round'];
+               if ($hthEntry['game']) {
+                       $episode->title .= ' Game '.$hthEntry['game'];
+               }
                $start = Carbon::parse($hthEntry['start']);
                if (!$episode->start || $start->ne($episode->start)) {
                        $episode->start = $start;