From: Daniel Karbach Date: Sun, 23 Apr 2023 20:22:15 +0000 (+0200) Subject: exclude "Undecided" channel from SG sync X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=90e0d999150ba3eee7f23af7b82ab9280a193d08;p=alttp.git exclude "Undecided" channel from SG sync --- diff --git a/app/Console/Commands/SyncSpeedGaming.php b/app/Console/Commands/SyncSpeedGaming.php index 610968e..43afaa1 100644 --- a/app/Console/Commands/SyncSpeedGaming.php +++ b/app/Console/Commands/SyncSpeedGaming.php @@ -125,7 +125,7 @@ class SyncSpeedGaming extends Command { $this->purgeChannels($episode, $sgEntry); $channelIds = []; foreach ($sgEntry['channels'] as $sgChannel) { - if ($sgChannel['initials'] == 'NONE') continue; + if ($sgChannel['initials'] == 'NONE' || $sgChannel['name'] == 'Undecided, Not SG') continue; try { $channel = $this->syncChannel($episode, $sgChannel); $channelIds[] = $channel->id;