Detect arithmetic progression

This commit is contained in:
Ben Sarmiento
2023-11-21 18:16:37 +01:00
parent a288f08ff7
commit 1995a86f29
5 changed files with 128 additions and 22 deletions

11
pkg/utils/streamable.go Normal file
View File

@@ -0,0 +1,11 @@
package utils
import "strings"
func IsStreamable(filePath string) bool {
return strings.HasSuffix(filePath, ".mkv") ||
strings.HasSuffix(filePath, ".mp4") ||
strings.HasSuffix(filePath, ".avi") ||
strings.HasSuffix(filePath, ".wmv") ||
strings.HasSuffix(filePath, ".m4v")
}