summaryrefslogtreecommitdiff
path: root/zdf.py
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2021-05-09 20:13:08 +0200
committerAndré Glüpker <git@wgmd.de>2021-05-09 20:23:18 +0200
commit93f3613dab38125d9ae7d5e74498c5395ac80ab0 (patch)
tree4f1a80138a83c98348464f1b9ddd949766441488 /zdf.py
parent5774dbfb2caa42cb55bafab98a40e47f395e44d9 (diff)
downloadrss-feeds-93f3613dab38125d9ae7d5e74498c5395ac80ab0.tar.gz
rss-feeds-93f3613dab38125d9ae7d5e74498c5395ac80ab0.tar.bz2
rss-feeds-93f3613dab38125d9ae7d5e74498c5395ac80ab0.zip
Unify method returns / return RSS object
Diffstat (limited to 'zdf.py')
-rwxr-xr-xzdf.py7
1 files changed, 6 insertions, 1 deletions
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