use utils.parse.line_normalise in title.py
This commit is contained in:
parent
10b5b19cff
commit
07c7afcf2e
1 changed files with 1 additions and 2 deletions
|
@ -58,8 +58,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
return -1, None
|
return -1, None
|
||||||
|
|
||||||
if page.data.title:
|
if page.data.title:
|
||||||
title = page.data.title.text.replace("\n", " ").replace(
|
title = utils.parse.line_normalise(page.data.title.text)
|
||||||
"\r", "").replace(" ", " ").strip()
|
|
||||||
if not title:
|
if not title:
|
||||||
return -3, None
|
return -3, None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue