]> git.localhorst.tv Git - alttp.git/commitdiff
exclude "Undecided" channel from SG sync
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 23 Apr 2023 20:22:15 +0000 (22:22 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 23 Apr 2023 20:22:15 +0000 (22:22 +0200)
app/Console/Commands/SyncSpeedGaming.php

index 610968e631f6fc0d66b49978ce817c018b8b108d..43afaa1b647f571e631818999385c0d7ec6d3c31 100644 (file)
@@ -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;