From 74ee75fa9915771af5c9585cc8adbdf52877496a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Sat, 28 Jun 2014 17:26:01 +0200 Subject: [PATCH] =?utf8?q?DateTimeOriginal=C2=A0:=20il=20faut=20d=C3=A9sor?= =?utf8?q?mais=20piocher=20dans=20xmp:CreateDate.=20Pff=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- photo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photo.py b/photo.py index 7cb8974..f0a76f5 100755 --- a/photo.py +++ b/photo.py @@ -153,7 +153,7 @@ class Photo(DynamicType, CMFCatalogAware, BasePhoto, DefaultDublinCoreImpl) : @memoizedmethod() def DateTimeOriginal(self) : """ return DateTimeOriginal exif tag value or created """ - dto = self.getXmpValue('exif:DateTimeOriginal') + dto = self.getXmpValue('exif:DateTimeOriginal') or self.getXmpValue('xmp:CreateDate') if dto : return DateTime(dto) else : -- 2.20.1