Update filetype.rs

Added a few video and audio extensions
This commit is contained in:
pskuza 2017-08-04 16:03:16 +02:00 committed by GitHub
parent ec472690e0
commit d76ce048c3

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