projects
/
booh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9c79fe
)
booh-classifier sort by exif date: fallback on filename content if exif date failed...
author
Guillaume Cottenceau
<gcottenc@gmail.com>
Thu, 7 Nov 2013 21:54:03 +0000
(22:54 +0100)
committer
Guillaume Cottenceau
<gcottenc@gmail.com>
Thu, 7 Nov 2013 21:54:03 +0000
(22:54 +0100)
bin/booh-classifier
patch
|
blob
|
history
diff --git
a/bin/booh-classifier
b/bin/booh-classifier
index
c85ed74
..
f1f3adb
100644
(file)
--- a/
bin/booh-classifier
+++ b/
bin/booh-classifier
@@
-1375,6
+1375,8
@@
def open_dir(*paths)
date_time = Exif.datetimeoriginal(file)
if ! date_time.nil?
dates[file] = date_time
+ elsif file =~ /(20\d{2}).?(\d{2}).?(\d{2}).(\d{2}).?(\d{2}).?(\d{2})/
+ dates[file] = "#$1:#$2:#$3 #$4:#$5:#$6"
end
}
entries = smartsort(entries, dates)