From 0284f690b0cfdd0f3c03e1bd6cffb07067e341d3 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 19 Jun 2026 15:25:15 +0200 Subject: [PATCH] remove player names from TFL episode title --- app/Console/Commands/SyncTFL.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/SyncTFL.php b/app/Console/Commands/SyncTFL.php index 5569b8c..c294740 100644 --- a/app/Console/Commands/SyncTFL.php +++ b/app/Console/Commands/SyncTFL.php @@ -102,10 +102,11 @@ class SyncTFL extends Command { $episode->confirmed = true; $episode->save(); - if (!preg_match('/\\| ([^|]+) vs\\. ([^|]+) \\|/', $tflEntry['name'], $matches)) { + if (!preg_match('/^(.*) \\| ([^|]+) vs\\. ([^|]+) \\| (.*)$/', $tflEntry['name'], $matches)) { return; } - $tflPlayers = [$matches[1], $matches[2]]; + $episode->title = $matches[1].' - '.$matches[4]; + $tflPlayers = [$matches[2], $matches[3]]; $this->purgePlayers($episode, $tflPlayers); foreach ($tflPlayers as $tflPlayer) { -- 2.47.3