From 587c7ff037929eb648f7b48627d95f91404fdb68 Mon Sep 17 00:00:00 2001 From: Ben Adrian Sarmiento Date: Tue, 16 Jul 2024 19:04:35 +0200 Subject: [PATCH] Add flv and webm as supported video files --- pkg/utils/playable.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/utils/playable.go b/pkg/utils/playable.go index cfa077c..0ed4e3c 100644 --- a/pkg/utils/playable.go +++ b/pkg/utils/playable.go @@ -5,13 +5,15 @@ import "strings" func IsVideo(filePath string) bool { filePath = strings.ToLower(filePath) return strings.HasSuffix(filePath, ".avi") || // confirmed working + strings.HasSuffix(filePath, ".flv") || // confirmed working strings.HasSuffix(filePath, ".m2ts") || // confirmed working strings.HasSuffix(filePath, ".m4v") || // confirmed working strings.HasSuffix(filePath, ".mkv") || // confirmed working strings.HasSuffix(filePath, ".mov") || // confirmed working strings.HasSuffix(filePath, ".mp4") || // confirmed working - strings.HasSuffix(filePath, ".mpg") || // confirmed working (no watch option in RD) strings.HasSuffix(filePath, ".mpeg") || // confirmed working (no watch option in RD) + strings.HasSuffix(filePath, ".mpg") || // confirmed working (no watch option in RD) strings.HasSuffix(filePath, ".ts") || // confirmed working + strings.HasSuffix(filePath, ".webm") || // confirmed working strings.HasSuffix(filePath, ".wmv") // confirmed working }