1
0
Derivar 0

Add game played to item description

Este cometimento está contido em:
Gregor Kleen 2018-06-13 01:35:13 +02:00
ascendente 226c4012f8
cometimento 3d45961b16
1 ficheiros modificados com 2 adições e 0 eliminações

Ver ficheiro

@ -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')