aboutsummaryrefslogtreecommitdiffstats
path: root/scanner/PhotoAlbum.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-07 03:00:06 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-07 03:00:06 -0400
commitd51f2981026b2b176cf566f522fc985692fb4923 (patch)
treece82d07383d732a33cb040c478101bc03ae4afde /scanner/PhotoAlbum.py
parentProper metadata support. (diff)
downloadPhotoFloat-d51f2981026b2b176cf566f522fc985692fb4923.tar.xz
PhotoFloat-d51f2981026b2b176cf566f522fc985692fb4923.zip
Date time bug.
Diffstat (limited to 'scanner/PhotoAlbum.py')
-rw-r--r--scanner/PhotoAlbum.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py
index 3ba7dc3..f8b6b14 100644
--- a/scanner/PhotoAlbum.py
+++ b/scanner/PhotoAlbum.py
@@ -144,7 +144,7 @@ class Photo(object):
try:
value = datetime.strptime(value, '%Y:%m:%d %H:%M:%S')
except:
- pass
+ continue
exif[decoded] = value
if "Orientation" in exif:
@@ -260,9 +260,9 @@ class Photo(object):
if not self.is_valid:
return datetime(1900, 1, 1)
if "DateTimeOriginal" in self._attributes:
- return self._attributes["DateTimeOriginal"]
+ return self._attributes["dateTimeOriginal"]
elif "DateTime" in self._attributes:
- return self._attributes["DateTime"]
+ return self._attributes["dateTime"]
else:
return self._attributes["dateTimeFile"]
def __cmp__(self, other):