Browse Source

parser: fixed ER_ tags not being detected

Signed-off-by: gryffyn <me@neveris.one>
main v0.2.1
gryffyn 7 months ago
parent
commit
51123aba17
Signed by: gryffyn GPG Key ID: 6948DD6514D02BEF
  1. 5
      parser/regex.go

5
parser/regex.go

@ -82,10 +82,9 @@ func ParseFormat(str string, t Tags) string {
p := r.ReplaceAllStringFunc(str,
func(s string) string {
raw := strings.Replace(s, "%", "", 2)
if !containsTag(t, raw) {
if !containsTag(t, raw) && !contains(newtags, raw) {
log.Fatal("Tag '" + raw + "' not present in file EXIF data.")
}
if raw == "Hash" {
} else if raw == "Hash" {
return sanitizeString(hash(t))
}
return sanitizeString(parseNewTags(raw, t))

Loading…
Cancel
Save