mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 04:36:06 +01:00
Pre-process not post-process
This commit is contained in:
parent
6da24d32a0
commit
ab24e12d80
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ def parse_index(self):
|
|||
return self.page_index
|
||||
|
||||
|
||||
def postprocess_html(self, soup, first):
|
||||
def preprocess_html(self, soup):
|
||||
for figure in soup.findAll('a', attrs = {'href' : lambda x: x and ('jpg' in x or 'png' in x or 'gif' in x)}):
|
||||
# makes sure that the link points to the absolute web address
|
||||
if figure['href'].startswith('/'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue