~tsileo/blobstash

15600af2bbf0b90740cb0f3c182bd50d615f11ae — Thomas Sileo 10 months ago 670cf08
filetree/vidinfo: add more video extensions
1 files changed, 1 insertions(+), 1 deletions(-)

M pkg/filetree/vidinfo/vidinfo.go
M pkg/filetree/vidinfo/vidinfo.go => pkg/filetree/vidinfo/vidinfo.go +1 -1
@@ 13,7 13,7 @@ import (

func IsVideo(filename string) bool {
	lname := strings.ToLower(filename)
	if strings.HasSuffix(lname, ".avi") || strings.HasSuffix(lname, ".mkv") || strings.HasSuffix(lname, ".mp4") {
	if strings.HasSuffix(lname, ".avi") || strings.HasSuffix(lname, ".mkv") || strings.HasSuffix(lname, ".mp4") || strings.HasSuffix(lname, ".mov") || strings.HasSuffix(lname, ".ogg") || strings.HasSuffix(lname, ".mpeg") || strings.HasSuffix(lname, ".mpg") || strings.HasSuffix(lname, ".3gp") || strings.HasSuffix(lname, ".flv") {
		return true
	}
	return false