mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 06:53:42 +02:00
...
This commit is contained in:
parent
c1eee81ff3
commit
55c728dd9e
1 changed files with 3 additions and 0 deletions
|
|
@ -637,6 +637,9 @@ def download_file(self, url_or_selector_or_qwe, timeout=60):
|
|||
self.page.unsupportedContent.disconnect(self.page.on_unsupported_content)
|
||||
try:
|
||||
def download(reply):
|
||||
if ans[0]:
|
||||
reply.abort() # We only handle the first unsupported download
|
||||
return
|
||||
ans[0] = True
|
||||
while not reply.isFinished() and end_time > time.time():
|
||||
if not loop.processEvents():
|
||||
|
|
|
|||
Loading…
Reference in a new issue