aboutsummaryrefslogtreecommitdiffstats
path: root/scanner
diff options
context:
space:
mode:
Diffstat (limited to 'scanner')
-rw-r--r--scanner/PhotoAlbum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py
index 78bdb63..ea4e6c2 100644
--- a/scanner/PhotoAlbum.py
+++ b/scanner/PhotoAlbum.py
@@ -146,7 +146,7 @@ class Photo(object):
for tag, value in info.items():
decoded = TAGS.get(tag, tag)
if isinstance(value, str):
- value = value.strip()
+ value = value.strip().partition("\x00")[0]
if isinstance(decoded, str) and decoded.startswith("DateTime"):
try:
value = datetime.strptime(value, '%Y:%m:%d %H:%M:%S')