mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 10:54:43 +01:00
...
This commit is contained in:
parent
f8f971d208
commit
5fe9010e74
1 changed files with 2 additions and 0 deletions
|
|
@ -479,6 +479,8 @@ def start_download(fname, path):
|
||||||
for fname in files_left:
|
for fname in files_left:
|
||||||
if fname is not raster_cover_name:
|
if fname is not raster_cover_name:
|
||||||
count += 1
|
count += 1
|
||||||
|
# Chrome starts killing AJAX requests if there are too many in flight, unlike Firefox
|
||||||
|
# which is smart enough to queue them
|
||||||
if count < 20:
|
if count < 20:
|
||||||
start_download(fname, base_path + encodeURIComponent(fname).replace(/%2[fF]/g, '/'))
|
start_download(fname, base_path + encodeURIComponent(fname).replace(/%2[fF]/g, '/'))
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue