From fe2728d5d906cb03310deb9cd42f7e4ad191e599 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 19 Jun 2026 15:21:40 +0200 Subject: [PATCH] parse sg alttpr league title format --- app/Console/Commands/SyncSpeedGaming.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Console/Commands/SyncSpeedGaming.php b/app/Console/Commands/SyncSpeedGaming.php index c2a02bd..362ee6f 100644 --- a/app/Console/Commands/SyncSpeedGaming.php +++ b/app/Console/Commands/SyncSpeedGaming.php @@ -102,6 +102,10 @@ class SyncSpeedGaming extends Command { } $episode->event()->associate($event); $episode->title = $sgEntry['match1']['title']; + if (preg_match('/^(.*)_(.*)__(.*)$/', $sgEntry['match1']['title'], $matches)) { + // league format + $episode->title = $matches[1].' vs. '.$matches[2].' - '.$matches[3]; + } $start = Carbon::createFromFormat('Y-m-d\TH:i:sP', $sgEntry['when']); if ($event->fix_timezone && !$episode->timezone_fix_override) { $sg_zone = new \DateTimeZone('America/Detroit'); -- 2.47.3