mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-26 13:56:27 +00:00
Update filetype.rs
Added a few video and audio extensions
This commit is contained in:
parent
ec472690e0
commit
d76ce048c3
@ -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",
|
||||
])
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user