diff --git a/legacy/application/models/Scheduler.php b/legacy/application/models/Scheduler.php index 8acf411cc..b9109665b 100644 --- a/legacy/application/models/Scheduler.php +++ b/legacy/application/models/Scheduler.php @@ -219,6 +219,7 @@ final class Application_Model_Scheduler // if there is a show we need to set a show limit to pass to smart blocks in case they use time remaining $showInstance = new Application_Model_ShowInstance($show); $showLimit = $showInstance->getSecondsRemaining(); + $originalShowLimit = $showLimit; $files = []; if ($type === 'audioclip') { @@ -310,7 +311,7 @@ final class Application_Model_Scheduler } // if this is a playlist it might contain multiple time remaining smart blocks // since the schedule isn't updated until after this insert we need to keep tally - $showLimit -= $this->timeLengthOfFiles($files); + $showLimit = $originalShowLimit - $this->timeLengthOfFiles($files); } } elseif ($type == 'stream') { // need to return