A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: lint coding style (pint)
aminnausin7050a5934c3b
diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.phpindex 38e93a44..4803466d 100755--- a/app/Jobs/IndexFiles.php+++ b/app/Jobs/IndexFiles.php@@ -242,7 +242,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@@ -537,7 +537,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@@ -616,7 +616,7 @@ class IndexFiles extends ManagedSubTask {private function resolveExistingUuid(?string $embeddedUuid, string $compositeId, string $logicalCompositeId, array $deletedIds, array $metadataByUuid, array $metadataByComposite): array {// sanitise input$embeddedUuid = $embeddedUuid && Uuid::isValid($embeddedUuid) ? $embeddedUuid : null;- $hasExistingVideo = fn($metadata) => $metadata->video_id !== null && ! in_array($metadata->video_id, $deletedIds, true);+ $hasExistingVideo = fn ($metadata) => $metadata->video_id !== null && ! in_array($metadata->video_id, $deletedIds, true);/*** 1: has uuid, and matches metadata by uuid@@ -715,5 +715,4 @@ class IndexFiles extends ManagedSubTask {return true;}}-class BatchCancelledException extends \Exception {-}+class BatchCancelledException extends \Exception {}