From 3dc03a6a0d6ec624c1c66d96691af6a09d461302 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 21 Feb 2023 16:20:14 +0100 Subject: [PATCH] fall back to any SG channel on lang not found --- app/Console/Commands/SyncSpeedGaming.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Console/Commands/SyncSpeedGaming.php b/app/Console/Commands/SyncSpeedGaming.php index ce8b10c..c2fa368 100644 --- a/app/Console/Commands/SyncSpeedGaming.php +++ b/app/Console/Commands/SyncSpeedGaming.php @@ -283,6 +283,9 @@ class SyncSpeedGaming extends Command { if ($channel) { return $channel; } + return $episode->channels() + ->where('ext_id', 'LIKE', 'sg:%') + ->first(); } private function getUserBySGPlayer($player) { -- 2.39.2