refactor(playback): simplify service files

This commit is contained in:
2026-04-20 01:20:07 +02:00
parent 158ead08f3
commit 3c438951a8
5 changed files with 30 additions and 46 deletions

View File

@@ -189,16 +189,12 @@ func extractDigits(value string) string {
func normalizeSourceTypeFromProbe(source StreamSource, contentType string) StreamSource {
lower := strings.ToLower(contentType)
if strings.Contains(lower, "video/mp4") {
switch {
case strings.Contains(lower, "video/mp4"):
source.Type = "mp4"
return source
}
if strings.Contains(lower, "mpegurl") {
case strings.Contains(lower, "mpegurl"):
source.Type = "m3u8"
return source
}
return source
}