From a2d00685224e8ce086400e04c3d8fb5f4bde2ee3 Mon Sep 17 00:00:00 2001 From: beville Date: Thu, 6 Dec 2012 04:44:27 +0000 Subject: [PATCH] only look at 3 pages if no good match git-svn-id: http://comictagger.googlecode.com/svn/trunk@227 6c5673fe-1810-88d6-992b-cd32ca31540c --- issueidentifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/issueidentifier.py b/issueidentifier.py index 7742b14..1749fba 100644 --- a/issueidentifier.py +++ b/issueidentifier.py @@ -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'])