Skip to content

A self-hosted media server and file management system

remove m2t since web player does not support it

aminnausin73ff8132d97e
diff --git a/README.md b/README.md
index b18563e6..5e94def7 100755
--- a/README.md
+++ b/README.md
@@ -179,7 +179,6 @@ You can share direct links to both videos and folders with the share buttons in
#### Default File Types
- MP4 (ExifTool/FFmpeg)
-- MP2T (FFmpeg)
- MKV (FFmpeg)
- MP3 (FFmpeg)
- OGG (FFmpeg)
diff --git a/app/Jobs/EmbedUidInMetadata.php b/app/Jobs/EmbedUidInMetadata.php
index 4608f1d9..b186d043 100644
--- a/app/Jobs/EmbedUidInMetadata.php
+++ b/app/Jobs/EmbedUidInMetadata.php
@@ -142,7 +142,7 @@ class EmbedUidInMetadata implements ShouldQueue {
$tempFilePath = $this->filePath . '.tmp';
- $formatMap = ['mp4' => 'mp4', 'mp2t' => 'mp2t', 'mkv' => 'matroska', 'mp3' => 'mp3', 'ogg' => 'opus', 'flac' => 'flac'];
+ $formatMap = ['mp4' => 'mp4', 'mkv' => 'matroska', 'mp3' => 'mp3', 'ogg' => 'opus', 'flac' => 'flac'];
$format = $formatMap[$ext] ?? $ext;
if ($ext === 'mp4') {
diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.php
index 03912c93..051bc377 100755
--- a/app/Jobs/IndexFiles.php
+++ b/app/Jobs/IndexFiles.php
@@ -468,7 +468,7 @@ class IndexFiles implements ShouldBeUnique, ShouldQueue {
$absolutePath = str_replace('\\', '/', Storage::disk('public')->path('')) . $file;
$ext = pathinfo($file, PATHINFO_EXTENSION);
- if (strtolower($ext) !== 'mp4' && strtolower($ext) !== 'mp2t' && strtolower($ext) !== 'mkv' && strtolower($ext) !== 'mp3' && strtolower($ext) !== 'ogg' && strtolower($ext) !== 'flac') { // && strtolower($ext) !== 'ogg' && strtolower($ext) !== 'flac' the conversion breaks ogg idk about flac
+ if (strtolower($ext) !== 'mp4' && strtolower($ext) !== 'mkv' && strtolower($ext) !== 'mp3' && strtolower($ext) !== 'ogg' && strtolower($ext) !== 'flac') { // && strtolower($ext) !== 'ogg' && strtolower($ext) !== 'flac' the conversion breaks ogg idk about flac
continue;
}