From 3131e3cbdfdc515cba9d7c653c2bd329d610df00 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sun, 21 Jan 2024 20:21:52 +0100 Subject: [PATCH] Fix issue on streamable check --- pkg/utils/streamable.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/utils/streamable.go b/pkg/utils/streamable.go index 10df276..bb02cd5 100644 --- a/pkg/utils/streamable.go +++ b/pkg/utils/streamable.go @@ -3,9 +3,11 @@ package utils import "strings" func IsStreamable(filePath string) bool { + filePath = strings.ToLower(filePath) return strings.HasSuffix(filePath, ".mkv") || strings.HasSuffix(filePath, ".mp4") || strings.HasSuffix(filePath, ".avi") || strings.HasSuffix(filePath, ".wmv") || - strings.HasSuffix(filePath, ".m4v") + strings.HasSuffix(filePath, ".m4v") || + strings.HasSuffix(filePath, ".ts") }