From d76ce048c3598de79dc00b16ed57833bb0cf86f4 Mon Sep 17 00:00:00 2001 From: pskuza Date: Fri, 4 Aug 2017 16:03:16 +0200 Subject: [PATCH] Update filetype.rs Added a few video and audio extensions --- src/info/filetype.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/info/filetype.rs b/src/info/filetype.rs index 608aff7..f71383d 100644 --- a/src/info/filetype.rs +++ b/src/info/filetype.rs @@ -35,13 +35,14 @@ impl FileExtensions { pub fn is_video(&self, file: &File) -> bool { file.extension_is_one_of( &[ "avi", "flv", "m2v", "mkv", "mov", "mp4", "mpeg", - "mpg", "ogm", "ogv", "vob", "wmv", + "mpg", "ogm", "ogv", "vob", "wmv", "webm", "m2ts", + "ts", ]) } pub fn is_music(&self, file: &File) -> bool { file.extension_is_one_of( &[ - "aac", "m4a", "mp3", "ogg", "wma", + "aac", "m4a", "mp3", "ogg", "wma", "mka", "opus", ]) }