don't try to parse empty <title>s
This commit is contained in:
parent
930794c414
commit
10b5b19cff
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ class Module(ModuleManager.BaseModule):
|
|||
if page.data.title:
|
||||
title = page.data.title.text.replace("\n", " ").replace(
|
||||
"\r", "").replace(" ", " ").strip()
|
||||
if not title:
|
||||
return -3, None
|
||||
|
||||
if channel:
|
||||
if (channel.get_setting("auto-title-difference", True) and
|
||||
|
|
Loading…
Reference in a new issue