A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
music
aminnausinfc28b085a908
diff --git a/app/Jobs/EmbedUidInMetadata.php b/app/Jobs/EmbedUidInMetadata.phpindex 6d5e8fa9..e5b37a55 100644--- a/app/Jobs/EmbedUidInMetadata.php+++ b/app/Jobs/EmbedUidInMetadata.php@@ -34,10 +34,10 @@ class EmbedUidInMetadata implements ShouldQueue {$this->uid = $uid;$subTask = SubTask::create(['task_id' => $taskId, 'status' => TaskStatus::PENDING, 'name' => 'Embed UID in video file']); //- DB::table('tasks')->where('id', $this->taskId)->update([- 'sub_tasks_pending' => DB::raw('sub_tasks_pending + 1'),- 'sub_tasks_total' => DB::raw('sub_tasks_total + 1'),- ]);++ DB::table('tasks')->where('id', $this->taskId)->increment('sub_tasks_pending');+ DB::table('tasks')->where('id', $this->taskId)->decrement('sub_tasks_total');+$this->taskId = $taskId;$this->subTaskId = $subTask->id;}diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.phpindex 5fb7df55..9c3b3ceb 100755--- a/app/Jobs/IndexFiles.php+++ b/app/Jobs/IndexFiles.php@@ -430,7 +430,7 @@ class IndexFiles implements ShouldBeUnique, ShouldQueue {// dd('F');$uuid = Str::uuid()->toString();// if ($count < 1) {- EmbedUidInMetadata::dispatch($absolutePath, $uuid);+ EmbedUidInMetadata::dispatch($absolutePath, $uuid, $this->taskId);// }// $count += 1;}diff --git a/resources/js/components/pinesUI/DropdownMenu.vue b/resources/js/components/pinesUI/DropdownMenu.vueindex 68e402fb..c2fe509e 100755--- a/resources/js/components/pinesUI/DropdownMenu.vue+++ b/resources/js/components/pinesUI/DropdownMenu.vue@@ -39,7 +39,7 @@ const dropDownItemsAuth = [[{ ...defaults, name: 'friends', url: '/friends', text: 'Friends', icon: LucideUsers, disabled: true },{ ...defaults, name: 'history', url: '/history', text: 'Full History', icon: LucideHistory },- { ...defaults, name: 'dashboard', url: '/dashboard', text: 'Dashboard', icon: LucideLayoutDashboard },+ { ...defaults, name: 'dashboard', url: '/dashboard?tab=overview', text: 'Dashboard', icon: LucideLayoutDashboard },],[{ ...defaults, name: 'index', url: '/jobs/indexFiles', text: 'Index Files', external: true, icon: LucideFolderSearch },diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vueindex 3711cc9f..2d56d7d1 100755--- a/resources/js/components/video/VideoPlayer.vue+++ b/resources/js/components/video/VideoPlayer.vue@@ -262,7 +262,7 @@ watch(stateVideo, initVideoPlayer);<track kind="captions" /></video><section- class="absolute bottom-6 w-[94.95%] m-auto left-0 right-0 opacity-0 group-hover:opacity-65 transition-opacity duration-75 h-5"+ class="absolute bottom-6 w-[94.95%] m-auto left-0 right-0 opacity-0 group-hover:opacity-65 transition-opacity duration-75 h-5 pointer-events-none"v-show="playbackHeatmap"><svg class="ytp-heat-map-svg fill-indigo-200/20 h-full w-full" preserveAspectRatio="none" viewBox="0 0 1000 100">diff --git a/resources/js/service/util.ts b/resources/js/service/util.tsindex 678ea8c6..9ac25745 100644--- a/resources/js/service/util.ts+++ b/resources/js/service/util.ts@@ -61,7 +61,7 @@ export function toFormattedDate(}export function toFormattedDuration(rawSeconds: number = 0) {- if (isNaN(parseInt(rawSeconds.toString()))) return null;+ if (isNaN(parseInt(rawSeconds?.toString() ?? '0'))) return null;const hours = Math.floor(rawSeconds / 3600);const minutes = Math.floor((rawSeconds % 3600) / 60);const seconds = Math.floor(rawSeconds % 60);diff --git a/resources/js/views/DashboardView.vue b/resources/js/views/DashboardView.vueindex 8789991c..e8e01f02 100644--- a/resources/js/views/DashboardView.vue+++ b/resources/js/views/DashboardView.vue@@ -39,25 +39,25 @@ const dashboardTabs: {{name: 'libraries',description: '',- info: { value: 'Total Size: 60GB' },+ info: { value: 'Total Size: ?' },icon: ProiconsLibrary,},- {- name: 'activity',- description: '',- info: { value: 'Logged Events: 686' },- icon: ProiconsHistory,- },+ // {+ // name: 'activity',+ // description: '',+ // info: { value: 'Logged Events: 686' },+ // icon: ProiconsHistory,+ // },{name: 'users',description: '',- info: { value: 'Logged In: 4' },+ info: { value: 'Logged In: ?' },icon: LucideUsers,},{name: 'tasks',description: '',- info: { value: 'Currently Running: 2' },+ info: { value: 'Currently Running: ?' },icon: CircumServer,},];