A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: add opus support
aminnausincd5365921ddf
diff --git a/app/Jobs/EmbedUidInMetadata.php b/app/Jobs/EmbedUidInMetadata.phpindex ca0cda8f..5c7dc341 100644--- a/app/Jobs/EmbedUidInMetadata.php+++ b/app/Jobs/EmbedUidInMetadata.php@@ -101,7 +101,7 @@ class EmbedUidInMetadata extends ManagedSubTask {$tempFilePath = $this->filePath . '.tmp';- $formatMap = ['mp4' => 'mp4', 'm4a' => 'mp4', 'mkv' => 'matroska', 'mp3' => 'mp3', 'ogg' => 'opus', 'flac' => 'flac'];+ $formatMap = ['mp4' => 'mp4', 'm4a' => 'mp4', 'mkv' => 'matroska', 'mp3' => 'mp3', 'ogg' => 'opus', 'opus' => 'opus', 'flac' => 'flac'];$format = $formatMap[$ext] ?? $ext;if ($ext === 'mp4') {diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.phpindex 3373b5c0..349614c7 100755--- a/app/Jobs/IndexFiles.php+++ b/app/Jobs/IndexFiles.php@@ -452,7 +452,7 @@ class IndexFiles extends ManagedSubTask {// TODO: This line defines what file types are supported. Move this somewhere else that is easy to configure$ext = pathinfo($file, PATHINFO_EXTENSION);$normalisedExt = strtolower($ext);- if (! in_array($normalisedExt, ['mp4', 'm4a', 'mkv', 'mp3', 'ogg', 'flac', 'webm'])) { // the conversion breaks ogg idk about flac+ if (! in_array($normalisedExt, ['mp4', 'm4a', 'mkv', 'mp3', 'ogg', 'flac', 'webm', 'opus'])) { // the conversion breaks ogg idk about flaccontinue;}