aboutsummaryrefslogtreecommitdiff
path: root/pkg/fileop
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-18 21:41:53 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-18 21:41:53 +0200
commit69d71c2a495d9cce1984ba2ffddf1d98622b01fe (patch)
tree3abd105a970fe773c0b19cb0c4f974688001e5e0 /pkg/fileop
parent05a8dbf46792adfef007a0ffbcb654026db036fa (diff)
downloadlens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.tar.gz
lens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.tar.bz2
lens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.zip
feat: Move to user path media
Now media also base on user folder to fetch its media.
Diffstat (limited to 'pkg/fileop')
-rw-r--r--pkg/fileop/file.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/fileop/file.go b/pkg/fileop/file.go
index 10e2202..8999f07 100644
--- a/pkg/fileop/file.go
+++ b/pkg/fileop/file.go
@@ -12,7 +12,8 @@ func GetHashFromPath(path string) string {
}
func IsMimeTypeSupported(mimetype string) bool {
- if mimetype == "image/svg+xml" {
+ if mimetype == "image/svg+xml" ||
+ mimetype == "video/mp2t" {
return false
}
return strings.HasPrefix(mimetype, "video") ||