diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-07 03:00:06 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-07 03:00:06 -0400 |
commit | d51f2981026b2b176cf566f522fc985692fb4923 (patch) | |
tree | ce82d07383d732a33cb040c478101bc03ae4afde /scanner | |
parent | Proper metadata support. (diff) | |
download | PhotoFloat-d51f2981026b2b176cf566f522fc985692fb4923.tar.xz PhotoFloat-d51f2981026b2b176cf566f522fc985692fb4923.zip |
Date time bug.
Diffstat (limited to 'scanner')
-rw-r--r-- | scanner/PhotoAlbum.py | 6 |
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): |