Merge pull request #8 from pngwjpgh/feat/game-description

Add game played to item description
This commit is contained in:
Laszlo Zeke 2018-10-04 22:36:37 +02:00 committed by GitHub
commit 8b3b098166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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["link"] = link
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'):
item["description"] += "<br/>" + vod['description_html']
d = datetime.datetime.strptime(vod['created_at'], '%Y-%m-%dT%H:%M:%SZ')