When downloading metadata from isbndb.com, download a maximum of 30 results rather than 1000

This commit is contained in:
Kovid Goyal 2011-01-05 14:32:39 -07:00
parent 421ad0b601
commit 59907f91c7

View File

@ -17,10 +17,10 @@ BASE_URL = 'http://isbndb.com/api/books.xml?access_key=%(key)s&page_number=1&res
class ISBNDBError(Exception):
pass
def fetch_metadata(url, max=100, timeout=5.):
def fetch_metadata(url, max=3, timeout=5.):
books = []
page_number = 1
total_results = sys.maxint
total_results = 31
br = browser()
while len(books) < total_results and max > 0:
try: