From 15a2cd3c1a84ab94cbf8df30dcb7ed30502883fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Wed, 1 May 2024 10:23:46 +0200 Subject: Improve naming --- zdf.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'zdf.py') diff --git a/zdf.py b/zdf.py index 0d5adc1..b81278d 100755 --- a/zdf.py +++ b/zdf.py @@ -15,18 +15,18 @@ def getText(dom, element): return "" -def zdf(feed): - url = f"https://www.zdf.de/rss/zdf/{feed}" +def zdf(show_url): + url = f"https://www.zdf.de/rss/zdf/{show_url}" try: - res = urlopen(Request(url)) + response = urlopen(Request(url)) except Exception as exc: logging.error("Request to zdf failed.", exc_info=exc) return None try: - rss = res.read() - xml = parseString(rss) + rss_raw = response.read() + xml = parseString(rss_raw) except Exception as exc: logging.error("Parsing to zdf failed.", exc_info=exc) return None -- cgit v1.2.3