|  |  | @ -262,16 +262,20 @@ class ArtNetManager: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 break |  |  |  |                 break | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             image_db_result = self.db_connection.get_art_by_path(self.all_images[curr_searched_image_index]) |  |  |  |             image_db_result = self.db_connection.get_art_by_path(self.all_images[curr_searched_image_index]) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if image_db_result is None: |  |  |  |             if image_db_result is None: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 image_db_result = self.db_connection.get_art_by_hash( |  |  |  |                 image_db_result = self.db_connection.get_art_by_hash( | 
			
		
	
		
		
			
				
					
					|  |  |  |                     self.get_md5_of_image(self.all_images[curr_searched_image_index]) |  |  |  |                     self.get_md5_of_image(self.all_images[curr_searched_image_index]) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ) |  |  |  |                 ) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if image_db_result is None:  # image is unknown to database |  |  |  |             if image_db_result is None:  # image is unknown to database | 
			
		
	
		
		
			
				
					
					|  |  |  |                 next_unknown = curr_searched_image_index |  |  |  |                 image_db_result = self.db_connection.get_art_by_hash( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 break |  |  |  |                     self.get_md5_of_image(self.all_images[curr_searched_image_index])) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             else: |  |  |  |                 if image_db_result is None: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 curr_searched_image_index += 1 |  |  |  |                     next_unknown = curr_searched_image_index | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     break | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             curr_searched_image_index += 1 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if next_unknown: |  |  |  |         if next_unknown: | 
			
		
	
		
		
			
				
					
					|  |  |  |             return curr_searched_image_index |  |  |  |             return curr_searched_image_index | 
			
		
	
	
		
		
			
				
					|  |  | @ -297,10 +301,13 @@ class ArtNetManager: | 
			
		
	
		
		
			
				
					
					|  |  |  |             image_db_result = self.db_connection.get_art_by_path(self.all_images[curr_searched_image_index]) |  |  |  |             image_db_result = self.db_connection.get_art_by_path(self.all_images[curr_searched_image_index]) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if image_db_result is None:  # image is unknown to database |  |  |  |             if image_db_result is None:  # image is unknown to database | 
			
		
	
		
		
			
				
					
					|  |  |  |                 next_unknown = curr_searched_image_index |  |  |  |                 image_db_result = self.db_connection.get_art_by_hash( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 break |  |  |  |                     self.get_md5_of_image(self.all_images[curr_searched_image_index])) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             else: |  |  |  |                 if image_db_result is None: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 curr_searched_image_index -= 1 |  |  |  |                     next_unknown = curr_searched_image_index | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     break | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             curr_searched_image_index -= 1 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if next_unknown: |  |  |  |         if next_unknown: | 
			
		
	
		
		
			
				
					
					|  |  |  |             return curr_searched_image_index |  |  |  |             return curr_searched_image_index | 
			
		
	
	
		
		
			
				
					|  |  | 
 |