A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: lint coding style (pint)
aminnausind58ba6ae8939
diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.phpindex b3c8073a..aab04b3c 100755--- a/app/Jobs/IndexFiles.php+++ b/app/Jobs/IndexFiles.php@@ -234,7 +234,7 @@ class IndexFiles extends ManagedSubTask {$data = Storage::json('categories.json') ?? ['next_ID' => 1, 'categoryStructure' => []]; // array("anime"=>1,"tv"=>2,"yogscast"=>3); // read from json$scanned = array_filter(scandir($path),- fn($item) => $item !== '.' &&+ fn ($item) => $item !== '.' &&$item !== '..' &&is_dir($path . DIRECTORY_SEPARATOR . $item)); // read folder structure@@ -528,7 +528,7 @@ class IndexFiles extends ManagedSubTask {->orderBy('updated_at', 'desc')->get(['uuid', 'video_id', 'composite_id', 'logical_composite_id', 'updated_at'])->groupBy('logical_composite_id')- ->map(fn($group) => $group->first())+ ->map(fn ($group) => $group->first())->all();// Creates insert and upsert transactions for videos and metadata@@ -677,5 +677,4 @@ class IndexFiles extends ManagedSubTask {return true;}}-class BatchCancelledException extends \Exception {-}+class BatchCancelledException extends \Exception {}diff --git a/app/Models/Series.php b/app/Models/Series.phpindex 2eacfead..bba0ca41 100644--- a/app/Models/Series.php+++ b/app/Models/Series.php@@ -38,7 +38,6 @@ class Series extends Model {* started_at -> date (nullable)* ended_at -> date (nullable)*/-protected $fillable = ['folder_id','editor_id',