commit db76e2d4316c29fc03b843e7339f3b1ecb31fc08
parent 21c6dc80fdf719f18118de46452c9c9d52ec1db2
Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 22 May 2017 19:36:32 +0200
Fixing initial bugs in JSON Feed support.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py
@@ -115,6 +115,8 @@ def parsejson(astr):
articles.append(article)
+ feed["articles"] = articles
+
return feed
def parseatom(astr):
@@ -372,5 +374,5 @@ def fetch(uri):
if ftype == "xml":
return (rcode, parsexml(fval))
else:
- return (rcode, parsejson(fval))
+ return (rcode, parsejson(fval.decode("utf-8")))