don't try to parse empty <title>s

This commit is contained in:
jesopo 2019-10-31 10:27:00 +00:00
parent 930794c414
commit 10b5b19cff

View file

@ -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