]> git.localhorst.tv Git - alttp.git/commitdiff
move static gmt episode props to init
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 17 Jan 2026 22:06:48 +0000 (23:06 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 17 Jan 2026 22:06:48 +0000 (23:06 +0100)
app/Console/Commands/SyncGMT.php

index 220d737573746979f5e25782e6d4ef4678de6b15..8f868970f1f11ab0c7e23c9c4d03ecae6a619657 100644 (file)
@@ -86,6 +86,8 @@ class SyncGMT extends Command {
                if (!$episode) {
                        $episode = new Episode();
                        $episode->ext_id = $ext_id;
+                       $episode->estimate = 90 * 60;
+                       $episode->confirmed = true;
                }
                $episode->event()->associate($event);
                $episode->title = $row[1].' vs '.$row[2];
@@ -112,8 +114,6 @@ class SyncGMT extends Command {
                                $episode->comment .= ", don't restream";
                        }
                }
-               $episode->estimate = 90 * 60;
-               $episode->confirmed = true;
                $episode->save();
                $this->syncPlayer($episode, $row[1]);
                $this->syncPlayer($episode, $row[2]);