12 lines
285 B
Go
12 lines
285 B
Go
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")
|
|
}
|