mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c1eee81ff3
commit
55c728dd9e
@ -637,6 +637,9 @@ class Browser(QObject, FormsMixin):
|
|||||||
self.page.unsupportedContent.disconnect(self.page.on_unsupported_content)
|
self.page.unsupportedContent.disconnect(self.page.on_unsupported_content)
|
||||||
try:
|
try:
|
||||||
def download(reply):
|
def download(reply):
|
||||||
|
if ans[0]:
|
||||||
|
reply.abort() # We only handle the first unsupported download
|
||||||
|
return
|
||||||
ans[0] = True
|
ans[0] = True
|
||||||
while not reply.isFinished() and end_time > time.time():
|
while not reply.isFinished() and end_time > time.time():
|
||||||
if not loop.processEvents():
|
if not loop.processEvents():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user