only look at 3 pages if no good match

git-svn-id: http://comictagger.googlecode.com/svn/trunk@227 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville 2012-12-06 04:44:27 +00:00
parent c6c5728cb3
commit a2d0068522

View File

@ -420,7 +420,7 @@ class IssueIdentifier:
self.log_msg( "Comparing to some other archive pages now..." )
found = False
for i in range( min(5, ca.getNumberOfPages())):
for i in range( min(3, ca.getNumberOfPages())):
image_data = ca.getPage(i)
page_hash = self.calculateHash( image_data )
distance = ImageHasher.hamming_distance(page_hash, self.match_list[0]['url_image_hash'])