|
@@ -35,13 +35,14 @@ impl FileExtensions {
|
|
|
pub fn is_video(&self, file: &File) -> bool {
|
|
pub fn is_video(&self, file: &File) -> bool {
|
|
|
file.extension_is_one_of( &[
|
|
file.extension_is_one_of( &[
|
|
|
"avi", "flv", "m2v", "mkv", "mov", "mp4", "mpeg",
|
|
"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 {
|
|
pub fn is_music(&self, file: &File) -> bool {
|
|
|
file.extension_is_one_of( &[
|
|
file.extension_is_one_of( &[
|
|
|
- "aac", "m4a", "mp3", "ogg", "wma",
|
|
|
|
|
|
|
+ "aac", "m4a", "mp3", "ogg", "wma", "mka", "opus",
|
|
|
])
|
|
])
|
|
|
}
|
|
}
|
|
|
|
|
|