From 93f3613dab38125d9ae7d5e74498c5395ac80ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Sun, 9 May 2021 20:13:08 +0200 Subject: Unify method returns / return RSS object --- zdf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'zdf.py') diff --git a/zdf.py b/zdf.py index 37749ac..28373ea 100755 --- a/zdf.py +++ b/zdf.py @@ -68,7 +68,12 @@ def zdf(feed): 'guid': s_guid, }) - return title, url, description, content + return { + "title": title, + "url": url, + "description": description, + "content": content, + } except Exception as exc: logging.error('Working with zdf failed.', exc_info=exc) return None -- cgit v1.2.3