Skip to content

Commit 8c1c5c7

Browse files
committed
feat: Remove key with binary data
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
1 parent 1a02184 commit 8c1c5c7

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
path: |
6969
exiftool
70-
key: exiftoolbinaries-12.35
70+
key: exiftoolbinaries-12.48
7171
- name: Build
7272
run: |
7373
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "release"

pkg/exas/exas.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ func (a App) get(ctx context.Context, input io.Reader) (exif model.Exif, err err
110110
exifData = exifs[0]
111111
}
112112

113+
for key, value := range exifData {
114+
if strValue, ok := value.(string); ok && strings.HasPrefix(strValue, "(Binary data") {
115+
delete(exifData, key)
116+
}
117+
}
118+
113119
exif.Data = exifData
114120
exif.Date = getDate(exif)
115121

0 commit comments

Comments
 (0)