add support for avi

This commit is contained in:
Stephen McQuay 2016-05-19 21:22:26 -07:00
parent 035375996e
commit 284a478a2f
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D

View File

@ -29,6 +29,7 @@ func init() {
".mov": true,
".mp4": true,
".m4v": true,
".avi": true,
}
}
@ -175,7 +176,7 @@ func _parse(path string) (Media, error) {
if err != nil {
return r, fmt.Errorf("unable to calculate reasonble time for media %q: %v", path, err)
}
case ".mov", ".mp4", ".m4v":
case ".mov", ".mp4", ".m4v", ".avi":
t, err = mtime(path)
if err != nil {
return r, fmt.Errorf("unable to calculate reasonble time for media %q: %v", path, err)