From c80de83eed01debceb7af9ce0b2514728421ed53 Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Sat, 2 Dec 2023 18:07:34 +0100 Subject: [PATCH] Fixed italic links - Fixed italic comeback title links to be parsed properly --- kprofilesfetch2.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kprofilesfetch2.py b/kprofilesfetch2.py index c33f044..88745d1 100644 --- a/kprofilesfetch2.py +++ b/kprofilesfetch2.py @@ -84,8 +84,11 @@ def convert_monthly_content_to_json(content, year, month): # clear the text from any leading spaces while parts[3].startswith(" "): parts[3] = parts[3][1:] - if (parts[3].startswith("[") and parts[3].endswith(")")) or (parts[3].startswith("*[") and parts[3].endswith(")*")): - parts[3] = parts[3][1:parts[3].find("]")] + if (parts[3].startswith("[") and parts[3].endswith(")")): + parts[3] = parts[3][1:parts[3].find("](")] + + if (parts[3].startswith("*[") and parts[3].endswith(")*")): + parts[3] = parts[3][2:parts[3].find("](")] releasetype = []