Skip to content

🎧 Your Personal Streaming Service

Fix pls ignoring

Deluan681849d17430
diff --git a/consts/mime_types.go b/consts/mime_types.go
index 23f94b2e3..837ccb528 100644
--- a/consts/mime_types.go
+++ b/consts/mime_types.go
@@ -19,6 +19,8 @@ func init() {
".shn": "audio/x-shn",
".aif": "audio/x-aiff",
".aiff": "audio/x-aiff",
+ ".m3u": "audio/x-mpegurl",
+ ".pls": "audio/x-scpls",
".gif": "image/gif",
".jpg": "image/jpeg",
".jpeg": "image/jpeg",
diff --git a/utils/files.go b/utils/files.go
index 64d19b604..5e9150c94 100644
--- a/utils/files.go
+++ b/utils/files.go
@@ -8,6 +8,7 @@ import (
var excludeAudioType = []string{
"audio/x-mpegurl",
+ "audio/x-scpls",
}
func IsAudioFile(filePath string) bool {