diff --git a/voussoir.net/photography/generate_site.py b/voussoir.net/photography/generate_site.py
index e94839f..7070b49 100644
--- a/voussoir.net/photography/generate_site.py
+++ b/voussoir.net/photography/generate_site.py
@@ -3,6 +3,7 @@ import io
import jinja2
import PIL.Image
import sys
+import textwrap
import urllib.parse
import etiquette
@@ -68,6 +69,7 @@ class Photo:
self.tiny_url = f'{S3_WEBROOT}/{self.tiny_key}'
self.anchor_url = f'{DOMAIN_WEBROOT}/{parent_key}#{self.article_id}'
self.published = imagetools.get_exif_datetime(self.etq_photo.real_path)
+ self.exposure_time = imagetools.exifread(self.etq_photo.real_path)['EXIF ExposureTime'].values[0].decimal()
def prepare(self):
if not self.s3_exists:
@@ -129,6 +131,7 @@ class Album:
# self.link = webpath(path)
self.web_url = f'{PHOTOGRAPHY_WEBROOT}/{self.article_id}'
self.published = self.photos[0].published
+ self.exposure_time = sum(p.exposure_time for p in self.photos)
def prepare(self):
for photo in self.photos:
@@ -141,15 +144,15 @@ class Album:
{{article_id}}