A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
Remove duplicate index and fix env example file whitespace
aminnausinfb1972621724
diff --git a/.env.example b/.env.exampleindex de4b86e7..1086a983 100644--- a/.env.example+++ b/.env.example@@ -61,4 +61,4 @@ VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"-COOL_ZCOMMAND=git branch --merged | %{$_.trim()} | ?{$_ -notmatch 'dev' -and $_ -notmatch 'main'} | %{git branch -d $_}\ No newline at end of file+COOL_ZCOMMAND="git branch --merged | %{$_.trim()} | ?{$_ -notmatch 'dev' -and $_ -notmatch 'main'} | %{git branch -d $_}"\ No newline at end of filediff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.phpindex 49154e1e..644da5b2 100644--- a/app/Jobs/IndexFiles.php+++ b/app/Jobs/IndexFiles.php@@ -101,7 +101,7 @@ class IndexFiles implements ShouldQueue, ShouldBeUnique}}foreach ($folders as $folderChange){ // for each in stored, remove from new (delete)- $changeID = $folderChange['id']['id'];+ $changeID = $folderChange['id'];$changeName = $folderChange["name"];$changePath = $folderChange["path"];$changeCategoryID = $folderChange["category_id"];@@ -279,8 +279,8 @@ class IndexFiles implements ShouldQueue, ShouldBeUnique}}}- foreach ($stored as $remainingFolder => $id){- $generated = array("id"=>$id,"name"=>null,"path"=>null, "category_id"=>null, "action"=>"DELETE"); // delete by id -> Used to store just ID -> Now store id and last_scan+ foreach ($stored as $remainingFolder){+ $generated = array("id"=>$remainingFolder['id'],"name"=>null,"path"=>null, "category_id"=>null, "action"=>"DELETE"); // delete by id -> Used to store just ID -> Now store id and last_scanarray_push($changes, $generated); // add to new (delete)$cost++;}