In PE's EXIF mode, don't match pictures without EXIF timestamp.

[#219 state:fixed]
This commit is contained in:
Virgil Dupras 2013-05-05 10:11:07 -04:00
parent 96c3d63557
commit 2c6339f7a2
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ def getmatches(files, match_scaled, j):
timestamp2pic = defaultdict(set)
for picture in j.iter_with_progress(files, tr("Read EXIF of %d/%d pictures")):
timestamp = picture.exif_timestamp
timestamp2pic[timestamp].add(picture)
if timestamp:
timestamp2pic[timestamp].add(picture)
if '0000:00:00 00:00:00' in timestamp2pic: # very likely false matches
del timestamp2pic['0000:00:00 00:00:00']
matches = []