#import sickbeard #import datetime #import re #from sickbeard.common import * #from sickbeard import sbdatetime #from sickbeard.helpers import anon_url #set global $title='Trending Shows' #set global $header='Trending Shows' #set global $sbPath='..' #set global $topmenu='comingEpisodes' #import os.path #include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl') #if $varExists('header')

$header

#else

$title

#end if #if $trending_shows
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_rootDirs.tmpl")
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_addShowOptions.tmpl")

Sort By: Sort Order:
#end if
#if None is $trending_shows

Trakt API did not return results, this can happen from time to time.

This view should auto refresh every 10 mins.

#else #for $cur_show in $trending_shows: #if not 'ExistsInLibrary' in $cur_show['tvdb_id']: #set $image = re.sub(r'(?im)(.*)(\..*?)$', r'\1-300\2', $cur_show['images']['poster'], 0)
<%= (cur_show['title'], ' ')[ '' == cur_show['title']] %>

$cur_show['ratings']['percentage']%

$cur_show['ratings']['votes'] votes
#end if #end for #end if
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')