mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update TIME Magazine
This commit is contained in:
parent
3caa7b7c92
commit
198a49454e
@ -96,6 +96,10 @@ class Time(JavascriptRecipe):
|
||||
ans['index'] = [('Articles', articles)]
|
||||
return ans
|
||||
|
||||
def preprocess_stage1(self, article, browser, url, recursion_level):
|
||||
for img in browser.css_select('img[data-lazy-src]', all=True):
|
||||
img.setAttribute('src', img.attribute('data-lazy-src'))
|
||||
|
||||
def load_complete(self, browser, url, rl):
|
||||
if self.time_initial_phase:
|
||||
browser.wait_for_element('footer.article-footer')
|
||||
|
Loading…
x
Reference in New Issue
Block a user