From: Daniel Karbach Date: Sat, 19 Jul 2025 11:21:45 +0000 (+0200) Subject: cabookey cancelled episode X-Git-Url: http://git.localhorst.tv/?a=commitdiff_plain;h=bd825ebd887c83293995a42028e171bdd99534b4;p=alttp.git cabookey cancelled episode --- diff --git a/app/Console/Commands/SyncCabookey.php b/app/Console/Commands/SyncCabookey.php index afcc28c..fb8121d 100644 --- a/app/Console/Commands/SyncCabookey.php +++ b/app/Console/Commands/SyncCabookey.php @@ -70,6 +70,13 @@ class SyncCabookey extends Command { private function syncSchedule(Event $event, $row) { $ext_id = 'cabookey:'.$row[0]; $episode = Episode::firstWhere('ext_id', '=', $ext_id); + if (in_array($ext_id, $this->cancelled)) { + if ($episode) { + $episode->callOff(); + $episode->delete(); + } + return; + } if (!$episode) { $episode = new Episode(); $episode->ext_id = $ext_id; @@ -126,4 +133,8 @@ class SyncCabookey extends Command { return null; } + private $cancelled = [ + 'cabookey:7/18/2025 2:50:35', + ]; + }