mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Stop fetching once dom is ready
This commit is contained in:
parent
1c2ca981d8
commit
a1096d303d
@ -108,6 +108,7 @@ class SimpleScraper(QWebEnginePage):
|
||||
if self.is_being_tested:
|
||||
self.print(f'domready: {self.is_current_url=}')
|
||||
if self.is_current_url:
|
||||
self.triggerAction(QWebEnginePage.WebAction.Stop)
|
||||
self.current_fetch['working'] = False
|
||||
if not msg.get('failed'):
|
||||
self.current_fetch['html'] = msg['html']
|
||||
|
Loading…
x
Reference in New Issue
Block a user