summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-12-02 16:34:44 +0100
committerPatrick Simianer <pks@pks.rocks>2018-12-02 16:34:44 +0100
commita5586ec611fc20aec84e43b8175b9a5af4e51538 (patch)
treee2b672b601151443ac1d0c66db1901878ca07e29
parent5b49c5c9dc14d5882acd1fe7f3a5eeddace34fdd (diff)
rename-pix-by-time-and-cam: alternative timestamp
-rwxr-xr-xrename-pix-by-time-and-cam4
1 files changed, 4 insertions, 0 deletions
diff --git a/rename-pix-by-time-and-cam b/rename-pix-by-time-and-cam
index 592e432..0dee002 100755
--- a/rename-pix-by-time-and-cam
+++ b/rename-pix-by-time-and-cam
@@ -32,6 +32,10 @@ ids.each do |i|
elsif j.start_with? "Date/Time Original"
timestamp = j
elsif j.start_with? "File Modification Date/Time"
+ if not timestamp_bak
+ timestamp_bak = j
+ end
+ elsif j.start_with? "Creation Date"
timestamp_bak = j
else
next