diff --git a/CHANGES.md b/CHANGES.md index 7c52b6f..78766eb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,7 @@ ### 0.22.0 (2020-xx-xx xx:xx:xx UTC) * Add menu Shows/"Metacritic Cards" +* Add menu Shows/"TV Calendar Cards" * Change make web UI calls async so that, for example, process media will not block page requests * Change improve speed of backlog overview * Fix the missing snatched low quality on backlog overview diff --git a/gui/slick/css/fonts/sgicons.eot b/gui/slick/css/fonts/sgicons.eot index 0333021..7253f34 100644 Binary files a/gui/slick/css/fonts/sgicons.eot and b/gui/slick/css/fonts/sgicons.eot differ diff --git a/gui/slick/css/fonts/sgicons.svg b/gui/slick/css/fonts/sgicons.svg index 93b5191..537201e 100644 --- a/gui/slick/css/fonts/sgicons.svg +++ b/gui/slick/css/fonts/sgicons.svg @@ -106,6 +106,7 @@ + diff --git a/gui/slick/css/fonts/sgicons.ttf b/gui/slick/css/fonts/sgicons.ttf index c96a7b5..dea7a1a 100644 Binary files a/gui/slick/css/fonts/sgicons.ttf and b/gui/slick/css/fonts/sgicons.ttf differ diff --git a/gui/slick/css/fonts/sgicons.woff b/gui/slick/css/fonts/sgicons.woff index 9da9f81..a5efba7 100644 Binary files a/gui/slick/css/fonts/sgicons.woff and b/gui/slick/css/fonts/sgicons.woff differ diff --git a/gui/slick/css/style.css b/gui/slick/css/style.css index cb24f57..33f0b89 100644 --- a/gui/slick/css/style.css +++ b/gui/slick/css/style.css @@ -678,6 +678,10 @@ inc_top.tmpl content:"\e890" } +.sgicon-tvc:before{ + content:"\e891" +} + .sgicon-imdb:before{ content:"\e898" } @@ -1415,6 +1419,25 @@ home_browseShows.tmpl background-image:url("../images/poster-dark.jpg") } +#browse-list.tvcalendar .browse-image{ + height:104px /* 62% of image height */ +} + +#browse-list.tvcalendar .show-toggle-hide{ + top:105px +} + +#browse-list.tvcalendar .show-card{ + height:172px /* -169px */ +} + +#browse-list.tvcalendar.no-votes .show-card{ + height:155px +} + +#browse-list.tvcalendar .show-card-inner .heart.icon-glyph{ + margin-left:0 +} /* ======================================================================= home_postprocess.tmpl ========================================================================== */ diff --git a/gui/slick/interfaces/default/home_browseShows.tmpl b/gui/slick/interfaces/default/home_browseShows.tmpl index 9efb227..c03eec3 100644 --- a/gui/slick/interfaces/default/home_browseShows.tmpl +++ b/gui/slick/interfaces/default/home_browseShows.tmpl @@ -7,11 +7,15 @@ <% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp# ## +#set $mode = $kwargs and $kwargs.get('mode', '') +#set $use_votes = $kwargs and $kwargs.get('use_votes', True) +#set $use_ratings = $kwargs and $kwargs.get('use_ratings', True) +## #set global $title='Browse %s Shows' % $browse_type #set global $header='Browse Shows' #set global $sbPath='..' #set global $topmenu='home' -#set global $page_body_attr = 'browse-list' +#set global $page_body_attr = 'browse-list" class="%s%s' % ($browse_type.lower(), ('', ' no-votes')[not $use_votes]) #set sg_root = $getVar('sbRoot', WEB_ROOT) ## #import os.path @@ -174,7 +178,7 @@ $(document).ready(function(){ $('#showfilter').on('change', function(){ var filterValue = this.value; - if (-1 == filterValue.indexOf('trakt') && -1 == filterValue.indexOf('imdb') && -1 == filterValue.indexOf('mc_') && -1 == filterValue.indexOf('default')) { + if (-1 == filterValue.indexOf('trakt') && -1 == filterValue.indexOf('imdb') && -1 == filterValue.indexOf('mc_') && -1 == filterValue.indexOf('tvc_') && -1 == filterValue.indexOf('default')) { var el$ = $('#container') el$.on('layoutComplete', llUpdate); el$.isotope({ filter: filterValue }); @@ -208,8 +212,6 @@ $(document).ready(function(){ #end if

%s' % $heading#

-#set $mode = $kwargs and $kwargs.get('mode', '') -#set $use_votes = $kwargs and $kwargs.get('use_votes') #if $all_shows or ($kwargs and $kwargs.get('show_header'))
#end if @@ -352,15 +363,18 @@ $(document).ready(function(){ #set $show_id = $this_show.get('show_id') #set $known = ('not', '')[bool($this_show.get('indb'))] #set $hide = ('', 'hide ')[bool($this_show.get('hide'))] + #set $data_rating = re.search(r'^\d+$', '%s' % $this_show['rating']) and $this_show['rating'] or 0 -
+
#if 'poster' in $this_show['images'] #set $image = $this_show['images']['poster']['thumb'] @@ -379,7 +393,9 @@ $(document).ready(function(){ #end if
-

$this_show['rating']%#if $use_votes#$this_show['votes'] votes#end if#

+ #if $use_ratings or $use_votes +

#if $use_ratings#$this_show['rating']%#end if##if $use_votes#$this_show['votes'] votes#end if#

#slurp# + #end if #if 'url_tvdb' in $this_show and $this_show['url_tvdb'] @@ -413,7 +429,7 @@ $(document).ready(function(){ #if $kwargs and $kwargs.get('error_msg') $kwargs['error_msg'] #else - $browse_type API did not return results, this can happen from time to time. + $browse_type did not return results, this can happen from time to time.

This view should auto refresh every 10 mins. #end if

diff --git a/gui/slick/interfaces/default/inc_top.tmpl b/gui/slick/interfaces/default/inc_top.tmpl index 3190c39..352d597 100644 --- a/gui/slick/interfaces/default/inc_top.tmpl +++ b/gui/slick/interfaces/default/inc_top.tmpl @@ -173,6 +173,13 @@ #end if
  • Metacritic Cards
  • +#set $tvc_mode = 'new shows' +#set $tvc_modes = dict(tvc_newshows='new shows', tvc_returning='returning', tvc_latest='latest') +#if $sg_var('TVC_MRU') in $tvc_modes + #set $tvc_mode = $tvc_modes[$sg_var('TVC_MRU')] +#end if +
  • TV Calendar Cards +
  • #if $sg_var('USE_ANIDB')
  • Anime Cards
  • @@ -182,7 +189,7 @@ #end if