Metadata: Update list of unwanted descriptions

This commit is contained in:
Michael Mayer 2022-06-16 09:36:34 +02:00
parent 23fd9ae731
commit 2f91813678

View File

@ -10,14 +10,22 @@ import (
) )
var UnwantedDescriptions = map[string]bool{ var UnwantedDescriptions = map[string]bool{
"Created by Imlib": true, // Apps
"iClarified": true,
"OLYMPUS DIGITAL CAMERA": true, // Olympus "OLYMPUS DIGITAL CAMERA": true, // Olympus
"SAMSUNG": true, // Samsung "SAMSUNG": true, // Samsung
"SAMSUNG CAMERA PICTURES": true, "SAMSUNG CAMERA PICTURES": true,
"<Digimax i5, Samsung #1>": true,
"SONY DSC": true, // Sony
"rhdr": true, // Huawei "rhdr": true, // Huawei
"hdrpl": true, "hdrpl": true,
"oznorWO": true, "oznorWO": true,
"frontbhdp": true, "frontbhdp": true,
"fbt": true, "fbt": true,
"rbt": true,
"ptr": true,
"fbthdr": true,
"btr": true,
"mon": true, "mon": true,
"nor": true, "nor": true,
"dav": true, "dav": true,
@ -35,15 +43,14 @@ var UnwantedDescriptions = map[string]bool{
"cof": true, "cof": true,
"qrf": true, "qrf": true,
"fshbty": true, "fshbty": true,
"binary comment": true, "binary comment": true, // Other
"default": true, "default": true,
"Exif_JPEG_PICTURE": true, "Exif_JPEG_PICTURE": true,
"<Digimax i5, Samsung #1>": true,
"DVC 10.1 HDMI": true, "DVC 10.1 HDMI": true,
"charset=Ascii": 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. // SanitizeString removes unwanted character from an exif value string.
func SanitizeString(s string) string { func SanitizeString(s string) string {