2014-03-10 05:18:05 +00:00
|
|
|
#import sickbeard
|
|
|
|
#import datetime
|
2017-01-01 18:16:51 +00:00
|
|
|
#from sickbeard import WEB_ROOT, THEME_NAME
|
2014-03-10 05:18:05 +00:00
|
|
|
#from sickbeard.common import *
|
2015-03-29 08:29:40 +00:00
|
|
|
#from sickbeard import sbdatetime, network_timezones
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
<% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp#
|
|
|
|
<% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp#
|
2015-05-03 00:42:14 +00:00
|
|
|
##
|
|
|
|
#set global $title = 'Home'
|
|
|
|
#set global $header = 'Show List'
|
|
|
|
#set global $sbPath = '..'
|
|
|
|
#set global $topmenu = 'home'
|
2015-05-07 00:36:40 +00:00
|
|
|
#set global $page_body_attr = 'show-list'
|
2015-09-23 15:18:17 +00:00
|
|
|
#set fuzzydate = 'airdate'
|
2017-01-01 18:16:51 +00:00
|
|
|
#set sg_root = $getVar('sbRoot', WEB_ROOT)
|
2015-05-03 00:42:14 +00:00
|
|
|
##
|
2014-03-10 05:18:05 +00:00
|
|
|
#import os.path
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
#include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl')
|
2015-09-23 15:18:17 +00:00
|
|
|
<script>
|
|
|
|
var config = {
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
isPoster: #echo ['!1','!0']['poster' == $sg_var('HOME_LAYOUT')]#,
|
|
|
|
sortArticle: #echo ['!1','!0'][$sg_var('SORT_ARTICLE')]#,
|
|
|
|
homeSearchFocus: #echo ['!1','!0'][$sg_var('HOME_SEARCH_FOCUS', True)]#,
|
|
|
|
fuzzyDating: #echo ['!1','!0'][$sg_var('FUZZY_DATING')]#,
|
|
|
|
timeZero: #echo ['!1','!0'][$sg_var('TRIM_ZERO')]#,
|
|
|
|
datePreset: "$sg_str('DATE_PRESET', '%x')",
|
|
|
|
timePreset: "$sg_str('TIME_PRESET', '%I:%M %p')",
|
|
|
|
posterSortby: "$sg_var('POSTER_SORTBY')",
|
|
|
|
posterSortdir: #echo ['!1','!0'][$sg_var('POSTER_SORTDIR', True)]#,
|
2015-09-23 15:18:17 +00:00
|
|
|
fuzzydate: ".$fuzzydate",
|
|
|
|
};
|
|
|
|
</script>
|
2017-01-01 18:16:51 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
#set theme_suffix = ('', '-dark')['dark' == $getVar('sbThemeName', THEME_NAME)]
|
|
|
|
.bfr{position:absolute;left:-999px;top:-999px}.bfr img{width:16px;height:16px}.spinner{display:inline-block;width:16px;height:16px;background:url(${sg_root}/images/loading16${theme_suffix}.gif) no-repeat 0 0}
|
|
|
|
</style>
|
|
|
|
<div class="bfr"><img src="$sg_root/images/loading16${theme_suffix}.gif" /></div>
|
|
|
|
|
2015-04-07 03:10:50 +00:00
|
|
|
<h1 class="header" style="margin-bottom:0">$showlists[0][1]</h1>
|
2016-02-14 12:28:30 +00:00
|
|
|
|
|
|
|
<div id="HomeLayout" class="pull-right">
|
2014-11-22 17:02:22 +00:00
|
|
|
#set $tab = 1
|
2016-02-14 12:28:30 +00:00
|
|
|
#set $selected = ' selected="selected"'
|
|
|
|
#if 'poster' == $layout
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
<div id="top-row">
|
2016-02-14 12:28:30 +00:00
|
|
|
<span>Sort By:
|
|
|
|
<select id="postersort" class="form-control form-control-inline input-sm" tabindex="$tab#set $tab += 1#">
|
2017-01-01 18:16:51 +00:00
|
|
|
<option value="name" data-sort="$sg_root/setPosterSortBy/?sort=name"#echo $selected if 'name' == $sg_str('POSTER_SORTBY', 'name') else ''#>Name</option>
|
|
|
|
<option value="date" data-sort="$sg_root/setPosterSortBy/?sort=date"#echo $selected if 'date' == $sg_str('POSTER_SORTBY') else ''#>Next Episode</option>
|
|
|
|
<option value="network" data-sort="$sg_root/setPosterSortBy/?sort=network"#echo $selected if 'network' == $sg_str('POSTER_SORTBY') else ''#>Network</option>
|
|
|
|
<option value="progress" data-sort="$sg_root/setPosterSortBy/?sort=progress"#echo $selected if 'progress' == $sg_str('POSTER_SORTBY') else ''#>Progress</option>
|
|
|
|
<option value="quality" data-sort="$sg_root/setPosterSortBy/?sort=quality"#echo $selected if 'quality' == $sg_str('POSTER_SORTBY') else ''#>Quality</option>
|
2016-02-14 12:28:30 +00:00
|
|
|
</select>
|
|
|
|
</span>
|
2014-11-22 17:02:22 +00:00
|
|
|
|
2016-02-14 12:28:30 +00:00
|
|
|
<span style="margin-left:5px">Sort Order:
|
|
|
|
<select id="postersortdirection" class="form-control form-control-inline input-sm" tabindex="$tab#set $tab += 1#">
|
2017-01-01 18:16:51 +00:00
|
|
|
<option value="true" data-sort="$sg_root/setPosterSortDir/?direction=1"#echo $selected if 1 == $sg_var('POSTER_SORTDIR', 1) else ''#>Asc</option>
|
|
|
|
<option value="false" data-sort="$sg_root/setPosterSortDir/?direction=0"#echo $selected if 0 == $sg_var('POSTER_SORTDIR') else ''#>Desc</option>
|
2016-02-14 12:28:30 +00:00
|
|
|
</select>
|
|
|
|
</span>
|
2015-05-07 00:36:40 +00:00
|
|
|
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
<span style="margin-left:5px" class="no-marginr">Layout:
|
2014-11-22 17:02:22 +00:00
|
|
|
#else
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
<span id="top-row" class="pull-right no-marginr">Layout:
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
2016-02-14 12:28:30 +00:00
|
|
|
<select style="margin-bottom:10px" name="layout" class="form-control form-control-inline input-sm" onchange="location = this.options[this.selectedIndex].value;" tabindex="$tab#set $tab += 1#">
|
2017-01-01 18:16:51 +00:00
|
|
|
<option value="$sg_root/setHomeLayout/?layout=poster"#echo $selected if 'poster' == $sg_str('HOME_LAYOUT', 'poster') else ''#>Poster</option>
|
|
|
|
<option value="$sg_root/setHomeLayout/?layout=small"#echo $selected if 'small' == $sg_str('HOME_LAYOUT') else ''#>Small Poster</option>
|
|
|
|
<option value="$sg_root/setHomeLayout/?layout=banner"#echo $selected if 'banner' == $sg_str('HOME_LAYOUT') else ''#>Banner</option>
|
|
|
|
<option value="$sg_root/setHomeLayout/?layout=simple"#echo $selected if 'simple' == $sg_str('HOME_LAYOUT') else ''#>Simple</option>
|
2016-02-14 12:28:30 +00:00
|
|
|
</select>
|
|
|
|
</span>
|
2015-05-07 00:36:40 +00:00
|
|
|
|
2016-02-14 12:28:30 +00:00
|
|
|
#if 'poster' == $layout
|
|
|
|
</div>
|
2014-11-22 17:02:22 +00:00
|
|
|
#end if
|
2016-02-14 12:28:30 +00:00
|
|
|
<div class="pull-right" style="clear:right">
|
|
|
|
<input id="search_show_name" class="search form-control form-control-inline input-sm input200" type="search" data-column="1" placeholder="Search Show Name" tabindex="$tab#set $tab += 1#">
|
|
|
|
<button type="button" class="resetshows btn btn-inline" tabindex="$tab#set $tab += 1#">Reset Search</button>
|
|
|
|
</div>
|
2015-05-03 00:42:14 +00:00
|
|
|
</div><!-- /HomeLayout -->
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2017-01-01 18:16:51 +00:00
|
|
|
#set $poster_id = 0
|
|
|
|
#set $load_normal = 0
|
2015-05-03 00:42:14 +00:00
|
|
|
#for $curShowlist in $showlists
|
|
|
|
#set $curListID = $curShowlist[0]
|
|
|
|
#set $curListName = $curShowlist[1]
|
|
|
|
#set $myShowList = $list($curShowlist[2])
|
|
|
|
#if $curShowlist != $showlists[0]
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
<h1 class="header">$curListName</h1>
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2014-12-14 12:56:20 +00:00
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#if 'poster' == $layout
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2016-02-14 12:28:30 +00:00
|
|
|
<div id="$curListID" class="clearfix container" style="clear:both#if 'poster' == $layout#;padding:0#end if#">
|
2015-05-03 00:42:14 +00:00
|
|
|
<div class="posterview">
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
#if $curLoadingShow.show != None and $curLoadingShow.show in $sg_str('showList')
|
2015-05-03 00:42:14 +00:00
|
|
|
#continue
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#if None is $curLoadingShow.show
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2016-02-14 12:28:30 +00:00
|
|
|
<div class="show-card" data-name="0" data-date="010101" data-network="0">
|
2017-01-01 18:16:51 +00:00
|
|
|
<img alt="" title="$curLoadingShow.show_name" class="show-image" style="border-bottom:1px solid #111" src="$sg_root/images/poster.png" />
|
2015-05-03 00:42:14 +00:00
|
|
|
<div class="show-details">
|
|
|
|
<div class="show-add">Loading... ($curLoadingShow.show_name)</div>
|
|
|
|
</div>
|
2015-05-07 00:36:40 +00:00
|
|
|
<span class="sort-data" data-progress="101"></span>
|
2015-05-03 00:42:14 +00:00
|
|
|
</div>
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#end for
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
$myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|
|
|
#for $curShow in $myShowList
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $cur_airs_next = ''
|
2014-09-30 22:20:37 +00:00
|
|
|
#set $cur_snatched = 0
|
|
|
|
#set $cur_downloaded = 0
|
|
|
|
#set $cur_total = 0
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $download_stat_tip = ''
|
|
|
|
#set $display_status = $curShow.status
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
#set $display_name = (re.sub('^((?:A(?!\s+to)n?)|The)\s(\w)', r'<span class="article">\1</span> \2', $curShow.name), $curShow.name)[$sg_var('SORT_ARTICLE')]
|
2017-01-01 18:16:51 +00:00
|
|
|
#set $poster_id += 1
|
2015-05-03 00:42:14 +00:00
|
|
|
#if None is not $display_status
|
|
|
|
#if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status)
|
|
|
|
#set $display_status = 'Continuing'
|
|
|
|
#else if re.search(r'(?i)(?:nded)', $curShow.status)
|
|
|
|
#set $display_status = 'Ended'
|
|
|
|
#end if
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#if $curShow.indexerid in $show_stat
|
|
|
|
#set $cur_airs_next = $show_stat[$curShow.indexerid]['ep_airs_next']
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $cur_snatched = $show_stat[$curShow.indexerid]['ep_snatched']
|
|
|
|
#if not $cur_snatched
|
|
|
|
#set $cur_snatched = 0
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $cur_downloaded = $show_stat[$curShow.indexerid]['ep_downloaded']
|
|
|
|
#if not $cur_downloaded
|
|
|
|
#set $cur_downloaded = 0
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $cur_total = $show_stat[$curShow.indexerid]['ep_total']
|
|
|
|
#if not $cur_total
|
|
|
|
#set $cur_total = 0
|
|
|
|
#end if
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#if $cur_total != 0
|
|
|
|
#set $download_stat = str($cur_downloaded)
|
|
|
|
#set $download_stat_tip = 'Downloaded: ' + str($cur_downloaded)
|
|
|
|
#if $cur_snatched > 0
|
2017-01-01 18:16:51 +00:00
|
|
|
#set $download_stat = '%s<a class="ui-font" href="%s/manage/episodeStatuses?whichStatus=2" title="View overview of snatched episodes">+%s</a>' % ($download_stat, $sg_root, $cur_snatched)
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $download_stat_tip = download_stat_tip + '
' + 'Snatched: ' + str($cur_snatched)
|
|
|
|
#end if
|
|
|
|
#set $download_stat = download_stat + ' / ' + str($cur_total)
|
|
|
|
#set $download_stat_tip = download_stat_tip + '
' + 'Total: ' + str($cur_total)
|
|
|
|
#else
|
|
|
|
#set $download_stat = '?'
|
|
|
|
#set $download_stat_tip = 'no data'
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $nom = $cur_downloaded
|
|
|
|
#set $den = $cur_total
|
|
|
|
#if $den == 0
|
|
|
|
#set $den = 1
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $progressbar_percent = $nom * 100 / $den
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $data_date = '600000000000'
|
|
|
|
#if $cur_airs_next
|
|
|
|
#set $data_date = $sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next, $curShow.airs, $curShow.network)).strftime('%Y%m%d%H%M')
|
|
|
|
#else if None is not $display_status
|
|
|
|
#if 'nded' not in $display_status and 1 == int($curShow.paused)
|
|
|
|
#set $data_date = '500000000500'
|
|
|
|
#else if 'ontinu' in $display_status
|
|
|
|
#set $data_date = '500000000000'
|
|
|
|
#else if 'nded' in $display_status
|
|
|
|
#set $data_date = '500000000100'
|
|
|
|
#end if
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2016-02-14 12:28:30 +00:00
|
|
|
<div id="show$curShow.indexerid" class="show-card" data-name="$curShow.name" data-date="$data_date" data-network="$curShow.network">
|
|
|
|
<div class="show-card-top">
|
|
|
|
<div class="show-image">
|
2017-01-01 18:16:51 +00:00
|
|
|
<a href="$sg_root/home/displayShow?show=$curShow.indexerid">
|
|
|
|
#if $load_normal > $poster_id
|
|
|
|
<img alt="" class="show-image" src="$sg_root/showPoster/?show=$curShow.indexerid&which=poster_thumb" />
|
|
|
|
#else
|
|
|
|
<img id="poster-$poster_id" alt="" class="show-image" data-original="$sg_root/showPoster/?show=$curShow.indexerid&which=poster_thumb" />
|
|
|
|
<span id="loading-poster-$poster_id" class="lazy-loading-image"><i class="spinner"></i></span>
|
|
|
|
#end if
|
|
|
|
</a>
|
2016-02-14 12:28:30 +00:00
|
|
|
</div>
|
2015-05-03 00:42:14 +00:00
|
|
|
|
2016-02-14 12:28:30 +00:00
|
|
|
<div style="border-top:1px solid black;height:1px"></div>
|
2015-05-03 00:42:14 +00:00
|
|
|
|
2016-02-14 12:28:30 +00:00
|
|
|
<div class="show-title">
|
|
|
|
$display_name
|
|
|
|
</div>
|
2015-05-03 00:42:14 +00:00
|
|
|
|
2016-02-14 12:28:30 +00:00
|
|
|
<div class="show-date">
|
2015-05-03 00:42:14 +00:00
|
|
|
#if $cur_airs_next
|
|
|
|
#set $ldatetime = $sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network))
|
2015-09-23 15:18:17 +00:00
|
|
|
<span class="$fuzzydate">$sbdatetime.sbdatetime.sbfdate($ldatetime)</span>
|
2015-05-03 00:42:14 +00:00
|
|
|
#else
|
|
|
|
#set $output_html = '?'
|
|
|
|
#if None is not $display_status
|
|
|
|
#if 'nded' not in $display_status and 1 == int($curShow.paused)
|
|
|
|
#set $output_html = 'Paused'
|
|
|
|
#else if $display_status
|
|
|
|
#set $output_html = $display_status
|
|
|
|
#end if
|
|
|
|
#end if
|
2016-02-14 12:28:30 +00:00
|
|
|
$output_html
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
2016-02-14 12:28:30 +00:00
|
|
|
</div><!-- /show-date -->
|
2015-05-03 00:42:14 +00:00
|
|
|
|
2016-02-14 12:28:30 +00:00
|
|
|
<table width="100%" border="0">
|
|
|
|
<tr>
|
|
|
|
<td class="show-table">
|
|
|
|
<span class="show-dlstats" title="$download_stat_tip">$download_stat</span>
|
|
|
|
</td>
|
2015-05-03 00:42:14 +00:00
|
|
|
|
2016-02-14 12:28:30 +00:00
|
|
|
<td class="show-table show-network">
|
|
|
|
#if 'simple' == $layout
|
|
|
|
$curShow.network
|
2015-05-03 00:42:14 +00:00
|
|
|
#else
|
2016-02-14 12:28:30 +00:00
|
|
|
#set $img_text = ($curShow.network, 'No Network')[None is $curShow.network]
|
|
|
|
#if 'No Network' is not $img_text and 'nonetwork' in $network_images[$curShow.indexerid]
|
|
|
|
$curShow.network
|
|
|
|
#else
|
2017-01-01 18:16:51 +00:00
|
|
|
<img class="show-network-image" src="$sg_root/images/network/$network_images[$curShow.indexerid]" alt="$img_text" title="$img_text" />
|
2016-02-14 12:28:30 +00:00
|
|
|
#end if
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
2016-02-14 12:28:30 +00:00
|
|
|
</td>
|
2015-05-03 00:42:14 +00:00
|
|
|
|
2016-02-14 12:28:30 +00:00
|
|
|
<td class="show-table">
|
2015-05-03 00:42:14 +00:00
|
|
|
#if $curShow.quality in $qualityPresets
|
2016-02-14 12:28:30 +00:00
|
|
|
<span class="show-quality">$qualityPresetStrings[$curShow.quality]</span>
|
2015-05-03 00:42:14 +00:00
|
|
|
#else
|
2016-02-14 12:28:30 +00:00
|
|
|
<span class="show-quality">Custom</span>
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
2016-02-14 12:28:30 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="progressbar$curShow.indexerid"></div>
|
2015-05-07 00:36:40 +00:00
|
|
|
<span class="sort-data" data-progress="$progressbar_percent"></span>
|
2015-05-03 00:42:14 +00:00
|
|
|
</div><!-- /show$curShow.indexerid -->
|
|
|
|
|
|
|
|
#end for
|
|
|
|
</div>
|
|
|
|
</div><!-- /$curListID -->
|
2014-09-30 22:20:37 +00:00
|
|
|
|
2015-05-03 00:42:14 +00:00
|
|
|
########################
|
|
|
|
## end of poster layout
|
|
|
|
########################
|
2014-09-30 22:20:37 +00:00
|
|
|
#else
|
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<table id="$curListID" class="tablesorter">
|
2015-05-03 00:42:14 +00:00
|
|
|
<thead>
|
2014-10-14 04:13:59 +00:00
|
|
|
<tr>
|
2015-05-03 00:42:14 +00:00
|
|
|
<th>Next Ep</th>
|
|
|
|
<th>Show</th>
|
|
|
|
<th>Network</th>
|
|
|
|
<th>Quality</th>
|
|
|
|
<th>Downloads</th>
|
|
|
|
<th>Active</th>
|
|
|
|
<th>Status</th>
|
2014-10-01 23:36:55 +00:00
|
|
|
</tr>
|
2015-05-03 00:42:14 +00:00
|
|
|
</thead>
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2015-05-03 00:42:14 +00:00
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2017-01-01 18:16:51 +00:00
|
|
|
<th><a href="$sg_root/home/addShows/">Add Show</a></th>
|
2015-05-07 00:36:40 +00:00
|
|
|
<th colspan="6"></th>
|
2015-05-03 00:42:14 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
2014-11-21 11:25:49 +00:00
|
|
|
|
2015-05-03 00:42:14 +00:00
|
|
|
<tbody>
|
|
|
|
#for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
#if $curLoadingShow.show != None and $curLoadingShow.show in $sg_str('showList')
|
2015-05-03 00:42:14 +00:00
|
|
|
#continue
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
<tr>
|
2015-05-07 00:36:40 +00:00
|
|
|
<td>(loading)</td>
|
|
|
|
<td class="text-left">
|
2015-05-03 00:42:14 +00:00
|
|
|
#if None is $curLoadingShow.show
|
|
|
|
Loading... ($curLoadingShow.show_name)
|
|
|
|
#else
|
2017-01-01 18:16:51 +00:00
|
|
|
<a href="$sg_root/home/displayShow?show=$curLoadingShow.show.indexerid">$curLoadingShow.show.name</a>
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
#end for
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
|
|
|
#set void = $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|
|
|
##
|
2017-01-01 18:16:51 +00:00
|
|
|
#set $poster_id = 0
|
|
|
|
#set $load_normal = 0
|
2015-05-03 00:42:14 +00:00
|
|
|
#for $curShow in $myShowList
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $cur_airs_next = ''
|
|
|
|
#set $cur_snatched = 0
|
|
|
|
#set $cur_downloaded = 0
|
|
|
|
#set $cur_total = 0
|
|
|
|
#set $download_stat_tip = ''
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
#set $display_name = (re.sub('^((?:A(?!\s+to)n?)|The)\s(\w)', r'<span class="article">\1</span> \2', $curShow.name), $curShow.name)[$sg_var('SORT_ARTICLE')]
|
2017-01-01 18:16:51 +00:00
|
|
|
#set $poster_id += 1
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#if $curShow.indexerid in $show_stat
|
|
|
|
#set $cur_airs_next = $show_stat[$curShow.indexerid]['ep_airs_next']
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $cur_snatched = $show_stat[$curShow.indexerid]['ep_snatched']
|
|
|
|
#if not $cur_snatched
|
|
|
|
#set $cur_snatched = 0
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $cur_downloaded = $show_stat[$curShow.indexerid]['ep_downloaded']
|
|
|
|
#if not $cur_downloaded
|
|
|
|
#set $cur_downloaded = 0
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $cur_total = $show_stat[$curShow.indexerid]['ep_total']
|
|
|
|
#if not $cur_total
|
|
|
|
#set $cur_total = 0
|
|
|
|
#end if
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#if $cur_total != 0
|
|
|
|
#set $download_stat = str($cur_downloaded)
|
|
|
|
#set $download_stat_tip = 'Downloaded: ' + str($cur_downloaded)
|
|
|
|
#if $cur_snatched > 0
|
2017-01-01 18:16:51 +00:00
|
|
|
#set $download_stat = '%s<a class="ui-font" href="%s/manage/episodeStatuses?whichStatus=2" title="View overview of snatched episodes">+%s</a>' % ($download_stat, $sg_root, $cur_snatched)
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $download_stat_tip = download_stat_tip + '
' + 'Snatched: ' + str($cur_snatched)
|
|
|
|
#end if
|
|
|
|
#set $download_stat = download_stat + ' / ' + str($cur_total)
|
|
|
|
#set $download_stat_tip = download_stat_tip + '
' + 'Total: ' + str($cur_total)
|
|
|
|
#else
|
|
|
|
#set $download_stat = '?'
|
|
|
|
#set $download_stat_tip = 'no data'
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $nom = $cur_downloaded
|
|
|
|
#set $den = $cur_total
|
|
|
|
#if $den == 0
|
|
|
|
#set $den = 1
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $progressbar_percent = $nom * 100 / $den
|
2016-03-30 14:49:22 +00:00
|
|
|
#if not $progressbar_percent
|
|
|
|
#set $progressbar_percent = (0, -1)['?' == $download_stat]
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-03 00:42:14 +00:00
|
|
|
<tr>
|
|
|
|
#if $cur_airs_next
|
|
|
|
#set $ldatetime = $sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network))
|
2015-09-23 15:18:17 +00:00
|
|
|
<td class="text-nowrap"><div class="$fuzzydate">$sbdatetime.sbdatetime.sbfdate($ldatetime)</div><span class="sort-data">$ldatetime.strftime('%Y%m%d%H%M')</span></td>
|
2015-05-03 00:42:14 +00:00
|
|
|
#else
|
2015-05-07 00:36:40 +00:00
|
|
|
<td></td>
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
|
|
|
#if 'small' == $layout
|
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td class="tvShow text-left">
|
2015-05-03 00:42:14 +00:00
|
|
|
<div class="imgsmallposter $layout">
|
2017-01-01 18:16:51 +00:00
|
|
|
<a href="$sg_root/showPoster/?show=$curShow.indexerid&which=poster" rel="dialog" title="$curShow.name">
|
|
|
|
#if $load_normal > $poster_id
|
|
|
|
<img src="$sg_root/showPoster/?show=$curShow.indexerid&which=poster_thumb" class="$layout" alt="$curShow.indexerid" />
|
|
|
|
#else
|
|
|
|
<img id="poster-$poster_id" data-original="$sg_root/showPoster/?show=$curShow.indexerid&which=poster_thumb" class="$layout" alt="$curShow.indexerid" />
|
|
|
|
<span id="loading-poster-$poster_id" class="lazy-loading-image"><i class="spinner"></i></span>
|
|
|
|
#end if
|
2015-05-03 00:42:14 +00:00
|
|
|
</a>
|
2017-01-01 18:16:51 +00:00
|
|
|
<a href="$sg_root/home/displayShow?show=$curShow.indexerid" style="vertical-align:middle">$display_name</a>
|
2015-05-03 00:42:14 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
#else if 'banner' == $layout
|
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td class="text-left">
|
2015-05-03 00:42:14 +00:00
|
|
|
<div class="imgbanner $layout">
|
2017-01-01 18:16:51 +00:00
|
|
|
<a href="$sg_root/home/displayShow?show=$curShow.indexerid">
|
|
|
|
#if $load_normal > $poster_id
|
|
|
|
<img src="$sg_root/showPoster/?show=$curShow.indexerid&which=banner" class="$layout" alt="$curShow.indexerid" title="$curShow.name" />
|
|
|
|
#else
|
|
|
|
<img id="poster-$poster_id" data-original="$sg_root/showPoster/?show=$curShow.indexerid&which=banner" class="$layout" alt="$curShow.indexerid" title="$curShow.name" />
|
|
|
|
<span id="loading-poster-$poster_id" class="lazy-loading-image"><i class="spinner"></i></span>
|
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
</a>
|
2015-05-03 00:42:14 +00:00
|
|
|
</div>
|
2016-03-30 14:49:22 +00:00
|
|
|
<span class="sort-data">$display_name</span>
|
2015-05-03 00:42:14 +00:00
|
|
|
</td>
|
|
|
|
#else if 'simple' == $layout
|
2014-07-21 05:38:50 +00:00
|
|
|
|
2017-01-01 18:16:51 +00:00
|
|
|
<td class="tvShow text-left"><a href="$sg_root/home/displayShow?show=$curShow.indexerid">$display_name</a></td>
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
|
|
|
#if 'simple' != $layout
|
|
|
|
#set $img_text = ($curShow.network, 'No Network')[None is $curShow.network]
|
2014-07-21 05:38:50 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td>
|
2016-02-14 12:28:30 +00:00
|
|
|
#if 'No Network' is not $img_text and 'nonetwork' in $network_images[$curShow.indexerid]
|
|
|
|
$curShow.network
|
|
|
|
#else
|
2017-01-01 18:16:51 +00:00
|
|
|
<img width="54" height="27" src="$sg_root/images/network/$network_images[$curShow.indexerid]" alt="#echo '%s" title="%s' % ($img_text, $img_text)#" />
|
2015-05-07 00:36:40 +00:00
|
|
|
<span class="sort-data">$curShow.network</span>
|
2016-02-14 12:28:30 +00:00
|
|
|
#end if
|
2015-05-03 00:42:14 +00:00
|
|
|
</td>
|
|
|
|
#else
|
2014-07-21 05:38:50 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td class="text-left">
|
2015-05-03 00:42:14 +00:00
|
|
|
<span>$curShow.network</span>
|
2016-03-30 14:49:22 +00:00
|
|
|
<span class="sort-data">$curShow.network</span>
|
2015-05-03 00:42:14 +00:00
|
|
|
</td>
|
|
|
|
#end if
|
|
|
|
#if $curShow.quality in $qualityPresets
|
2014-07-21 05:38:50 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td><span class="quality $qualityPresetStrings[$curShow.quality]">$qualityPresetStrings[$curShow.quality]</span></td>
|
2015-05-03 00:42:14 +00:00
|
|
|
#else
|
2014-07-21 05:38:50 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td><span class="quality Custom">Custom</span></td>
|
2015-05-03 00:42:14 +00:00
|
|
|
#end if
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td>
|
2015-05-03 00:42:14 +00:00
|
|
|
<div id="progressbar$curShow.indexerid" style="position:relative">
|
2016-03-30 14:49:22 +00:00
|
|
|
<div class="progressbarText ui-font" title="$download_stat_tip">$download_stat</div>
|
2015-05-03 00:42:14 +00:00
|
|
|
</div>
|
2015-05-07 00:36:40 +00:00
|
|
|
<span class="sort-data" data-progress="$progressbar_percent"></span>
|
2015-05-03 00:42:14 +00:00
|
|
|
</td>
|
2014-12-14 12:56:20 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td>
|
|
|
|
<i class=#echo '"%s" alt="%s"' % (('no', 'N'),('yes', 'Y'))[0 == int($curShow.paused) and 'Ended' != $curShow.status]#></i>
|
2015-05-03 00:42:14 +00:00
|
|
|
</td>
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<td>
|
2015-05-03 00:42:14 +00:00
|
|
|
#set $display_status = $curShow.status
|
|
|
|
#if None is not $display_status
|
|
|
|
#if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status)
|
|
|
|
#set $display_status = 'Continuing'
|
|
|
|
#else if re.search(r'(?i)(?:nded)', $curShow.status)
|
|
|
|
#set $display_status = 'Ended'
|
|
|
|
#end if
|
|
|
|
#end if
|
|
|
|
$display_status
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
#end for
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-12-14 12:56:20 +00:00
|
|
|
|
2014-11-21 11:25:49 +00:00
|
|
|
#end if
|
2014-05-27 07:44:23 +00:00
|
|
|
#end for
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-09-23 15:18:17 +00:00
|
|
|
|
2017-01-01 18:16:51 +00:00
|
|
|
<script type="text/javascript" src="$sg_root/js/lazyload/lazyload.min.js?v=$sbPID"></script>
|
|
|
|
<script type="text/javascript" src="$sg_root/js/inc_bottom.js?v=$sbPID"></script>
|
|
|
|
<script type="text/javascript" src="$sg_root/js/home.js?v=$sbPID"></script>
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
#include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_bottom.tmpl')
|