From 10b5b19cffc3a5b46e1a65174392acbad8add8ea Mon Sep 17 00:00:00 2001
From: jesopo
Date: Thu, 31 Oct 2019 10:27:00 +0000
Subject: don't try to parse empty
s
---
modules/title.py | 2 ++
1 file changed, 2 insertions(+)
(limited to 'modules/title.py')
diff --git a/modules/title.py b/modules/title.py
index 66d5d44a..6956e7d9 100644
--- a/modules/title.py
+++ b/modules/title.py
@@ -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
--
cgit v1.3.1-10-gc9f91