feedgenerator

A simple tool to create various feeds
git clone https://git.ortlepp.eu/feedgenerator.git/
Log | Files | Refs | README | LICENSE

commit 54286df7eba527d3c225a567f58b96b0d591e18d
parent 2a40cc6576bb204d8b81bccd1dcde647502142a1
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Sat, 15 Jan 2022 14:37:42 +0100

Title parsing improvement for Antenne Muenster

Diffstat:
Mantenne_muenster.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/antenne_muenster.py b/antenne_muenster.py @@ -43,7 +43,10 @@ class AntenneMuensterFeed(): if string.endswith("."): string = string[0:len(string) - 1] if string.find("Uhr:") == -1: - return string + if string.find("Uhr") == -1: + return string + else: + return string.split("Uhr", 1)[1].strip() else: return string.split("Uhr:")[1].strip()