package utils import "strings" func IsPlayable(filePath string) bool { filePath = strings.ToLower(filePath) return strings.HasSuffix(filePath, ".avi") || strings.HasSuffix(filePath, ".m2ts") || strings.HasSuffix(filePath, ".m4v") || strings.HasSuffix(filePath, ".mkv") || // confirmed working strings.HasSuffix(filePath, ".mp4") || // confirmed working strings.HasSuffix(filePath, ".mpg") || strings.HasSuffix(filePath, ".ts") || strings.HasSuffix(filePath, ".wmv") || strings.HasSuffix(filePath, ".m4b") // confirmed working }