do not display gifv as video
This commit is contained in:
parent
79c9c30230
commit
408cd30d27
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ fun File.isImageSlow() = isImageFast() || getMimeType().startsWith("image")
|
|||
|
||||
// fast extension check, not guaranteed to be accurate
|
||||
fun File.isVideoFast(): Boolean {
|
||||
val videoExtensions = arrayOf("gifv", "webm", "mkv", "flv", "vob", "avi", "wmv", "mp4", "ogv", "qt", "m4p", "mpg", "m4v", "mp2", "mpeg", "3gp")
|
||||
val videoExtensions = arrayOf("webm", "mkv", "flv", "vob", "avi", "wmv", "mp4", "ogv", "qt", "m4p", "mpg", "m4v", "mp2", "mpeg", "3gp")
|
||||
val filename = name.toLowerCase()
|
||||
return videoExtensions.any { filename.endsWith(it) }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue