From 47a1e12c2cac0d1e415de9994b2e32a244a3f7da Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 7 May 2011 03:05:54 -0400 Subject: [PATCH] More case bugs. --- scanner/PhotoAlbum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py index f8b6b14..e88fef4 100644 --- a/scanner/PhotoAlbum.py +++ b/scanner/PhotoAlbum.py @@ -259,9 +259,9 @@ class Photo(object): def date(self): if not self.is_valid: return datetime(1900, 1, 1) - if "DateTimeOriginal" in self._attributes: + if "dateTimeOriginal" in self._attributes: return self._attributes["dateTimeOriginal"] - elif "DateTime" in self._attributes: + elif "dateTime" in self._attributes: return self._attributes["dateTime"] else: return self._attributes["dateTimeFile"]