mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-09 13:53:52 +01:00
When downloading metadata from isbndb.com, download a maximum of 30 results rather than 1000
This commit is contained in:
parent
421ad0b601
commit
59907f91c7
1 changed files with 2 additions and 2 deletions
|
|
@ -17,10 +17,10 @@
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue