Add game played to item description

This commit is contained in:
Gregor Kleen 2018-06-13 01:35:13 +02:00
parent 226c4012f8
commit 3d45961b16
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ class RSSVoDServer(webapp2.RequestHandler):
item["category"] = vod['broadcast_type'] item["category"] = vod['broadcast_type']
item["link"] = link item["link"] = link
item["description"] = "<a href=\"%s\"><img src=\"%s\" /></a>" % (link, vod['preview']['large']) item["description"] = "<a href=\"%s\"><img src=\"%s\" /></a>" % (link, vod['preview']['large'])
if vod.get('game'):
item["description"] += "<br/>" + vod['game']
if vod.get('description_html'): if vod.get('description_html'):
item["description"] += "<br/>" + vod['description_html'] item["description"] += "<br/>" + vod['description_html']
d = datetime.datetime.strptime(vod['created_at'], '%Y-%m-%dT%H:%M:%SZ') d = datetime.datetime.strptime(vod['created_at'], '%Y-%m-%dT%H:%M:%SZ')