Detect arithmetic progression
This commit is contained in:
11
pkg/utils/streamable.go
Normal file
11
pkg/utils/streamable.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user