Skip to content

Commit

Permalink
Add ignoring of non-ZIP archive ZIP:ZipModifyDate tag in MS Office .d…
Browse files Browse the repository at this point in the history
…ocx (#155)
  • Loading branch information
gyk4j authored Feb 7, 2024
1 parent 75cf674 commit 9aba857
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Wreck/IO/Reader/MetaTag/ExifToolReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ public override void Extract(FileSystemInfo file, List<Metadata> metadata)
if(!key.StartsWith("System:") && key.EndsWith(s))
remove = false;
}

// Some ZIP based files (e.g. .docx) always return 01 Jan 1980 as placeholder value.
if(!file.Extension.ToLower().Equals(".zip") && key.Equals("ZIP:ZipModifyDate"))
remove = true;

// To be removed if it is not in the list.
if(remove)
Expand Down

0 comments on commit 9aba857

Please sign in to comment.