From: Daniel Karbach Date: Tue, 21 Feb 2023 15:20:14 +0000 (+0100) Subject: fall back to any SG channel on lang not found X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=3dc03a6a0d6ec624c1c66d96691af6a09d461302;p=alttp.git fall back to any SG channel on lang not found --- 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) {