do not display gifv as video

This commit is contained in:
tibbi 2017-02-12 20:49:07 +01:00
parent 79c9c30230
commit 408cd30d27

View file

@ -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) }
}