don't overwrite page
- we need it for page.code
This commit is contained in:
parent
cc976f33de
commit
389370708d
1 changed files with 3 additions and 3 deletions
|
@ -57,10 +57,10 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
if not page.content_type in utils.http.SOUP_CONTENT_TYPES:
|
if not page.content_type in utils.http.SOUP_CONTENT_TYPES:
|
||||||
return -1, None
|
return -1, None
|
||||||
page = page.soup()
|
soup = page.soup()
|
||||||
|
|
||||||
if page.title:
|
if soup.title:
|
||||||
title = utils.parse.line_normalise(page.title.text)
|
title = utils.parse.line_normalise(soup.title.text)
|
||||||
if not title:
|
if not title:
|
||||||
return -3, None
|
return -3, None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue