mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-10-30 12:50:24 +08:00
Add code for lazyload images in base_xenforoforum.
This commit is contained in:
1 parent
b25a869185
commit
35c066ea65
1 file changed
+5
@@ -310,6 +310,11 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
|
||||
|
||||
for qdiv in bq.find_all('div',{'class':'quoteExpand'}):
|
||||
qdiv.extract() # Remove <div class="quoteExpand">click to expand</div>
|
||||
|
||||
## img alt="[IMG]" class="bbCodeImage LbImage lazyload
|
||||
## include lazy load images.
|
||||
for img in bq.find_all('img',{'class':'lazyload'}):
|
||||
img['src'] = img['data-src']
|
||||
|
||||
except Exception as e:
|
||||
if self.getConfig('continue_on_chapter_error'):
|
||||
|
||||
Reference in new issue
Block a user