Title for live content
This commit is contained in:
		
							parent
							
								
									66c83f82d8
								
							
						
					
					
						commit
						07518aaa60
					
				|  | @ -106,12 +106,13 @@ class RSSVoDServer(webapp2.RequestHandler): | ||||||
|             if vods_info['videos'] is not None: |             if vods_info['videos'] is not None: | ||||||
|                 for vod in vods_info['videos']: |                 for vod in vods_info['videos']: | ||||||
|                     item = {} |                     item = {} | ||||||
|                     item["title"] = vod['title'] |  | ||||||
|                     link = "" |                     link = "" | ||||||
|                     if vod["status"] == "recording": |                     if vod["status"] == "recording": | ||||||
|                         link = "http://www.twitch.tv/%s" % channel_name |                         link = "http://www.twitch.tv/%s" % channel_name | ||||||
|  |                         item["title"] = "%s - LIVE" % vod['title'] | ||||||
|                     else: |                     else: | ||||||
|                         link = vod['url'] |                         link = vod['url'] | ||||||
|  |                         item["title"] = vod['title'] | ||||||
|                     item["link"] = link |                     item["link"] = link | ||||||
|                     item["description"] = "<a href=\"%s\"><img src=\"%s\" /></a>" % (link, vod['preview']) |                     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') |                     d = datetime.datetime.strptime(vod['recorded_at'], '%Y-%m-%dT%H:%M:%SZ') | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue