Title for live content

This commit is contained in:
Laszlo Zeke 2015-10-10 12:30:39 +02:00
parent 66c83f82d8
commit 07518aaa60
1 changed files with 2 additions and 1 deletions

View File

@ -106,12 +106,13 @@ class RSSVoDServer(webapp2.RequestHandler):
if vods_info['videos'] is not None:
for vod in vods_info['videos']:
item = {}
item["title"] = vod['title']
link = ""
if vod["status"] == "recording":
link = "http://www.twitch.tv/%s" % channel_name
item["title"] = "%s - LIVE" % vod['title']
else:
link = vod['url']
item["title"] = vod['title']
item["link"] = link
item["description"] = "<a href=\"%s\"><img src=\"%s\" /></a>" % (link, vod['preview'])
d = datetime.datetime.strptime(vod['recorded_at'], '%Y-%m-%dT%H:%M:%SZ')