A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: preview style change
aminnausin4861b1a73acb
diff --git a/app/Services/PreviewGeneratorService.php b/app/Services/PreviewGeneratorService.phpindex 22bdc302..01dfe3ae 100644--- a/app/Services/PreviewGeneratorService.php+++ b/app/Services/PreviewGeneratorService.php@@ -222,14 +222,9 @@ class PreviewGeneratorService {protected function canUseDocker(): bool {try {- $output = shell_exec('docker version --format "{{.Server.Version}}" 2>&1');- if (str_contains(strtolower($output), 'error') || trim($output) === '') {- return false;- }-- $output = shell_exec('docker run --rm spatie/browsershot chromium --version 2>&1');+ $dockerInfo = shell_exec('docker info --format "{{.ServerVersion}}" 2>&1');- return str_contains($output, 'Chromium');+ return ! empty($dockerInfo) && ! str_contains(strtolower($dockerInfo), 'error');} catch (\Throwable $e) {return false;}diff --git a/database/migrations/2025_04_21_003922_add_preview_u_r_ls_to_series_and_metadata.php b/database/migrations/2025_04_21_003922_add_preview_u_r_ls_to_series_and_metadata.phpnew file mode 100644index 00000000..265ea28f--- /dev/null+++ b/database/migrations/2025_04_21_003922_add_preview_u_r_ls_to_series_and_metadata.php@@ -0,0 +1,31 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++return new class extends Migration {+ /**+ * Run the migrations.+ */+ public function up(): void {+ Schema::table('series', function (Blueprint $table) {+ //+ });+ Schema::table('metadata', function (Blueprint $table) {+ //+ });+ }++ /**+ * Reverse the migrations.+ */+ public function down(): void {+ Schema::table('series', function (Blueprint $table) {+ //+ });+ Schema::table('metadata', function (Blueprint $table) {+ //+ });+ }+};diff --git a/resources/views/og-media-preview.blade.php b/resources/views/og-media-preview.blade.phpindex e066b0e4..a74fdeb2 100644--- a/resources/views/og-media-preview.blade.php+++ b/resources/views/og-media-preview.blade.php@@ -16,7 +16,7 @@ $banner_url = str_replace('http://', 'https://', $banner_url ?? $thumbnail_url);</style></head>-<body class="flex items-center justify-center text-xl">+<body class="flex items-center justify-center text-xl "><div class="relative flex w-[1200px] h-[630px] overflow-hidden"><div class="relative flex-1"></div>@@ -26,17 +26,17 @@ $banner_url = str_replace('http://', 'https://', $banner_url ?? $thumbnail_url);<div class="absolute inset-0 bg-slate-900/50 backdrop-blur-md "></div><div class=" z-30 h-full p-8 px-16 text-white flex flex-col justify-center skew-x-3 "><section class="flex flex-col">- <p class="">{{$content_string}}</p>- <h2 class="text-4xl font-bold mt-2">{{ $title }}</h2>- <p class="text-yellow-400 mt-1 text-2xl">{{ $studio ?? ""}}</p>+ <p class="drop-shadow-lg">{{$content_string}}</p>+ <h2 class="text-4xl font-bold mt-2 drop-shadow-lg">{{ $title }}</h2>+ <p class="text-yellow-400 mt-1 text-2xl drop-shadow-lg">{{ $studio ?? ""}}</p></section><section class="flex flex-col justify-end mt-auto gap-2">- <p class="line-clamp-2">{{ $description ?? ""}}</p>+ <div class="flex items-center text-4xl font-semibold ml-auto">+ ⭐ <span class="ml-1">{{$rating ?? 87}}%</span>+ </div>+ <p class="line-clamp-2 drop-shadow-lg">{{ $description ?? ""}}</p><div class="mt-auto flex items-center gap-3">- <div class="flex items-center text-4xl font-semibold flex-initial">- ⭐ <span class="ml-1">{{$rating ?? 87}}%</span>- </div>- @foreach (collect($tags ?? [])->take(3) as $tag)+ @foreach (collect($tags ?? ['fantasy','romance'])->take(3) as $tag)<span class="bg-white/10 px-3 py-1 rounded-full ">{{ $tag }}</span>@endforeach