From 0c94783852fb9da827c808b9721904ac8b4254e7 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Thu, 14 Sep 2023 21:23:27 +0200 Subject: [PATCH] fix album author --- lib/WPImport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/WPImport.py b/lib/WPImport.py index d6696e5..f48bc85 100644 --- a/lib/WPImport.py +++ b/lib/WPImport.py @@ -171,7 +171,8 @@ class WPimport: split_paragraph = str(paragraph).split("
") self._logger.info("{0} get paragraph splitted : {1}".format(self._name, split_paragraph)) if len(split_paragraph) > 1: - author = split_paragraph[1].split(":")[1].replace(" ", "").lower() + if len(split_paragraph[1].split(":")) > 1: + author = split_paragraph[1].split(":")[1].replace(" ", "").lower() return author