fix VIDEO_TS playlist

This commit is contained in:
nikk gitanes
2023-02-24 03:27:36 +03:00
parent 53313c6701
commit fb2ba1e386
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package utils
import (
"path/filepath"
"strings"
"server/torr/state"
)
@@ -68,7 +69,7 @@ var extAudio = map[string]interface{}{
}
func GetMimeType(filename string) string {
ext := filepath.Ext(filename)
ext := strings.ToLower(filepath.Ext(filename))
if _, ok := extVideo[ext]; ok {
return "video/*"
}