From 2f9181367882f5e5c1f2dabd12a574f73e4a4770 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 16 Jun 2022 09:36:34 +0200 Subject: [PATCH] Metadata: Update list of unwanted descriptions --- internal/meta/sanitize.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/internal/meta/sanitize.go b/internal/meta/sanitize.go index 4d1f77393..6dd72c01b 100644 --- a/internal/meta/sanitize.go +++ b/internal/meta/sanitize.go @@ -10,14 +10,22 @@ import ( ) var UnwantedDescriptions = map[string]bool{ + "Created by Imlib": true, // Apps + "iClarified": true, "OLYMPUS DIGITAL CAMERA": true, // Olympus "SAMSUNG": true, // Samsung "SAMSUNG CAMERA PICTURES": true, + "": true, + "SONY DSC": true, // Sony "rhdr": true, // Huawei "hdrpl": true, "oznorWO": true, "frontbhdp": true, "fbt": true, + "rbt": true, + "ptr": true, + "fbthdr": true, + "btr": true, "mon": true, "nor": true, "dav": true, @@ -35,15 +43,14 @@ var UnwantedDescriptions = map[string]bool{ "cof": true, "qrf": true, "fshbty": true, - "binary comment": true, + "binary comment": true, // Other "default": true, "Exif_JPEG_PICTURE": true, - "": true, "DVC 10.1 HDMI": true, "charset=Ascii": true, } -var LowerCaseRegexp = regexp.MustCompile("[a-z0-9_\\-]+") +var LowerCaseRegexp = regexp.MustCompile("[a-z\\d_\\-]+") // SanitizeString removes unwanted character from an exif value string. func SanitizeString(s string) string {