A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: storyboards have no reason to store interval in ms over seconds
aminnausinb0dfd77aab7a
diff --git a/app/Http/Resources/Metadata/StoryboardResource.php b/app/Http/Resources/Metadata/StoryboardResource.phpindex b2a95b97..4bbd197f 100644--- a/app/Http/Resources/Metadata/StoryboardResource.php+++ b/app/Http/Resources/Metadata/StoryboardResource.php@@ -18,7 +18,7 @@ class StoryboardResource extends JsonResource {'tile_width' => $this->tile_width,'tile_height' => $this->tile_height,'tile_count' => $this->tile_count,- 'interval_ms' => $this->interval_ms,+ 'interval_seconds' => $this->interval_seconds,];}}diff --git a/app/Models/Storyboard.php b/app/Models/Storyboard.phpindex ca88bdf2..81e3efc3 100644--- a/app/Models/Storyboard.php+++ b/app/Models/Storyboard.php@@ -16,7 +16,7 @@ class Storyboard extends Model {* tile_height -> int2* tile_count -> int2*- * interval_ms -> int4+ * interval_seconds -> int4** created_at -> timestamptz (nullable)* updated_at -> timestamptz (nullable)@@ -33,7 +33,7 @@ class Storyboard extends Model {'tile_width','tile_height','tile_count',- 'interval_ms',+ 'interval_seconds','modified_at',];@@ -48,7 +48,7 @@ class Storyboard extends Model {'tile_width','tile_height','tile_count',- 'interval_ms',+ 'interval_seconds',];}}diff --git a/database/migrations/2026_05_21_210603_change_interval_to_seconds_on_storyboards.php b/database/migrations/2026_05_21_210603_change_interval_to_seconds_on_storyboards.phpnew file mode 100644index 00000000..6517628a--- /dev/null+++ b/database/migrations/2026_05_21_210603_change_interval_to_seconds_on_storyboards.php@@ -0,0 +1,38 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\DB;+use Illuminate\Support\Facades\Schema;++return new class extends Migration {+ /**+ * Run the migrations.+ */+ public function up(): void {+ Schema::table('storyboards', function (Blueprint $table) {+ $table->integer("interval_seconds")->default(10);+ });++ DB::statement('UPDATE storyboards SET interval_seconds = interval_ms / 1000');++ Schema::table('storyboards', function (Blueprint $table) {+ $table->dropColumn("interval_ms");+ });+ }++ /**+ * Reverse the migrations.+ */+ public function down(): void {+ Schema::table('storyboards', function (Blueprint $table) {+ $table->integer("interval_ms")->default(10);+ });++ DB::statement('UPDATE storyboards SET interval_ms = interval_seconds * 1000');++ Schema::table('storyboards', function (Blueprint $table) {+ $table->dropColumn("interval_seconds");+ });+ }+};diff --git a/resources/js/components/video/PlayerStoryboard.vue b/resources/js/components/video/PlayerStoryboard.vueindex 0a177087..47509ac9 100644--- a/resources/js/components/video/PlayerStoryboard.vue+++ b/resources/js/components/video/PlayerStoryboard.vue@@ -37,9 +37,8 @@ const thumbnailCues = computed<ThumbnailCue[]>(() => {return [];}- const { tile_rows: rows, tile_cols: cols, tile_height: tileHeight, tile_width: tileWidth, interval_ms: interval_ms } = storyboard.value;+ const { tile_rows: rows, tile_cols: cols, tile_height: tileHeight, tile_width: tileWidth, interval_seconds: interval } = storyboard.value;- const interval = interval_ms / 1000;const tilesPerSheet = rows * cols;const cues = [];diff --git a/resources/js/contracts/media.ts b/resources/js/contracts/media.tsindex 16471cf2..01415e63 100644--- a/resources/js/contracts/media.ts+++ b/resources/js/contracts/media.ts@@ -158,7 +158,7 @@ export interface StoryboardResource {tile_width: number;tile_height: number;tile_count: number;- interval_ms: number;+ interval_seconds: number;}//#endregion