summaryrefslogtreecommitdiff
path: root/app/utils
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-11-08 11:17:32 -0500
committerluxagraf <sng@luxagraf.net>2016-11-08 11:17:32 -0500
commit4799ea2205e44736113cab9f9023df69f3c95f1f (patch)
treeb7e73cfb97647267ef89a9d841ab32b416be3411 /app/utils
parente5197c724d988a10c9d9bd75094c0642c24e6918 (diff)
fixed a bug in image parser to allow captions
Diffstat (limited to 'app/utils')
-rw-r--r--app/utils/widgets.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/utils/widgets.py b/app/utils/widgets.py
index 170cc88..c688518 100644
--- a/app/utils/widgets.py
+++ b/app/utils/widgets.py
@@ -130,7 +130,12 @@ def parse_image(s):
if cl[0] == 'cluster':
cluster_class = cl[1]
try:
- extra = cl[2]
+ if cl[2] == 'caption':
+ caption = True
+ elif cl[2] == 'exif':
+ exif = True
+ else:
+ extra = cl[2]
except:
pass
if len(cl) > 1: