From 07518aaa60c66020f44f1727c63bbf52e430acd1 Mon Sep 17 00:00:00 2001 From: Laszlo Zeke Date: Sat, 10 Oct 2015 12:30:39 +0200 Subject: [PATCH] Title for live content --- TwitchRSS/twitchrss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TwitchRSS/twitchrss.py b/TwitchRSS/twitchrss.py index 339341d..0417f0b 100644 --- a/TwitchRSS/twitchrss.py +++ b/TwitchRSS/twitchrss.py @@ -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"] = "" % (link, vod['preview']) d = datetime.datetime.strptime(vod['recorded_at'], '%Y-%m-%dT%H:%M:%SZ')