14 lines
363 B
Go
14 lines
363 B
Go
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, ".ts")
|
|
}
|