Add flv and webm as supported video files
This commit is contained in:
@@ -5,13 +5,15 @@ import "strings"
|
|||||||
func IsVideo(filePath string) bool {
|
func IsVideo(filePath string) bool {
|
||||||
filePath = strings.ToLower(filePath)
|
filePath = strings.ToLower(filePath)
|
||||||
return strings.HasSuffix(filePath, ".avi") || // confirmed working
|
return strings.HasSuffix(filePath, ".avi") || // confirmed working
|
||||||
|
strings.HasSuffix(filePath, ".flv") || // confirmed working
|
||||||
strings.HasSuffix(filePath, ".m2ts") || // confirmed working
|
strings.HasSuffix(filePath, ".m2ts") || // confirmed working
|
||||||
strings.HasSuffix(filePath, ".m4v") || // confirmed working
|
strings.HasSuffix(filePath, ".m4v") || // confirmed working
|
||||||
strings.HasSuffix(filePath, ".mkv") || // confirmed working
|
strings.HasSuffix(filePath, ".mkv") || // confirmed working
|
||||||
strings.HasSuffix(filePath, ".mov") || // confirmed working
|
strings.HasSuffix(filePath, ".mov") || // confirmed working
|
||||||
strings.HasSuffix(filePath, ".mp4") || // confirmed working
|
strings.HasSuffix(filePath, ".mp4") || // confirmed working
|
||||||
strings.HasSuffix(filePath, ".mpg") || // confirmed working (no watch option in RD)
|
|
||||||
strings.HasSuffix(filePath, ".mpeg") || // confirmed working (no watch option in RD)
|
strings.HasSuffix(filePath, ".mpeg") || // confirmed working (no watch option in RD)
|
||||||
|
strings.HasSuffix(filePath, ".mpg") || // confirmed working (no watch option in RD)
|
||||||
strings.HasSuffix(filePath, ".ts") || // confirmed working
|
strings.HasSuffix(filePath, ".ts") || // confirmed working
|
||||||
|
strings.HasSuffix(filePath, ".webm") || // confirmed working
|
||||||
strings.HasSuffix(filePath, ".wmv") // confirmed working
|
strings.HasSuffix(filePath, ".wmv") // confirmed working
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user