Merge pull request #224 from ogham/exa/master

Update filetype.rs
This commit is contained in:
Benjamin Sago 2017-08-05 19:58:19 +01:00 committed by GitHub
commit 878be362c6

View File

@ -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",
])
}