From 6f78a48e57b3744abd9c2559f689486aa5e2d2c3 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 11 Sep 2023 23:20:48 +0200 Subject: [PATCH] fix index --- lib/WPImport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WPImport.py b/lib/WPImport.py index 2740011..d6696e5 100644 --- a/lib/WPImport.py +++ b/lib/WPImport.py @@ -170,7 +170,7 @@ class WPimport: if len(split_paragraph) == 1: split_paragraph = str(paragraph).split("
") self._logger.info("{0} get paragraph splitted : {1}".format(self._name, split_paragraph)) - if len(split_paragraph) > 0: + if len(split_paragraph) > 1: author = split_paragraph[1].split(":")[1].replace(" ", "").lower() return author