mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Merge pull request #350 from JackDandy/feature/ChangeReduceHtmlPayload
Change reduce html payload across page template files.
This commit is contained in:
commit
f745fb251c
39 changed files with 652 additions and 662 deletions
|
@ -32,6 +32,7 @@
|
|||
* Change Show List progress bar code, smaller page load, efficient use of js render engine
|
||||
* Change values used for date sorting on home page and episode view for improved compatibility with posix systems
|
||||
* Change response handling in downloaders to simplify logic.
|
||||
* Change reduce html payload across page template files
|
||||
|
||||
[develop changelog]
|
||||
Fix issue changing a custom show list group name that is in use. The bug resulted in the db containing stale group names
|
||||
|
|
|
@ -557,6 +557,10 @@ home.tmpl
|
|||
margin-right:5px
|
||||
}
|
||||
|
||||
.imgsmallposter.small{
|
||||
font-size:100%
|
||||
}
|
||||
|
||||
#HomeLayout{margin-top:-35px}
|
||||
#HomeLayout.not-poster{height:75px}
|
||||
#HomeLayout div.not-poster{position:relative;top:38px}
|
||||
|
@ -627,6 +631,17 @@ home.tmpl
|
|||
border-radius:3px
|
||||
}
|
||||
|
||||
.yes,
|
||||
.no{
|
||||
display:inline-block;
|
||||
vertical-align:middle;
|
||||
width:16px;
|
||||
height:16px
|
||||
}
|
||||
|
||||
.yes{background-image:url("../images/yes16.png")}
|
||||
.no{background-image:url("../images/no16.png")}
|
||||
|
||||
#container{
|
||||
margin:0 auto
|
||||
}
|
||||
|
@ -817,6 +832,21 @@ td.tvShow a:hover{
|
|||
color:#428BCA
|
||||
}
|
||||
|
||||
|
||||
#rename th, #rename td,
|
||||
#failed th, #failed td,
|
||||
#backlog th, #backlog td,
|
||||
#show-list th, #show-list td {
|
||||
text-align:center
|
||||
}
|
||||
|
||||
#rename th.text-left, #rename td.text-left,
|
||||
#failed th.text-left, #failed td.text-left,
|
||||
#backlog th.text-left, #backlog td.text-left,
|
||||
#show-list th.text-left, #show-list td.text-left {
|
||||
text-align:left
|
||||
}
|
||||
|
||||
/* =======================================================================
|
||||
home_addShows.tmpl
|
||||
========================================================================== */
|
||||
|
@ -1615,6 +1645,10 @@ td.col-search{
|
|||
width:46px
|
||||
}
|
||||
|
||||
#testRenameTable tbody td.col-checkbox,
|
||||
#testRenameTable tbody td.col-ep {width:1%;vertical-align:middle}
|
||||
#testRenameTable tbody td.col-name {width:49%}
|
||||
|
||||
.input-scene{
|
||||
height:20px;
|
||||
line-height:1.5;
|
||||
|
@ -1631,7 +1665,7 @@ td.col-search{
|
|||
episodeView.tmpl
|
||||
========================================================================== */
|
||||
|
||||
.sort_data{
|
||||
.sort-data{
|
||||
display:none
|
||||
}
|
||||
|
||||
|
|
|
@ -1,33 +1,19 @@
|
|||
#import sickbeard
|
||||
|
||||
##
|
||||
#set global $title = '404'
|
||||
|
||||
#set global $sbPath = '..'
|
||||
|
||||
#set global $topmenu = '404'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>SickGear - BRANCH:[$sickbeard.BRANCH] - $title</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="$sbRoot/css/lib/bootstrap.css?$sbPID"/>
|
||||
<link rel="stylesheet" type="text/css" href="$sbRoot/css/style.css?$sbPID"/>
|
||||
<link rel="stylesheet" type="text/css" href="$sbRoot/css/${sickbeard.THEME_NAME}.css?$sbPID" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="error-404">
|
||||
<h1>404</h1>
|
||||
<h2>Page Not Found</h2>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" width="500px" height="100px" viewBox="0 0 50 10" enable-background="new 0 0 50 10" xml:space="preserve"><g><path d="M2.364 7.785H2.027C1.405 7 1.1 6.1 1.1 5.275c0-0.871 0.31-1.708 0.932-2.514h0.337 C1.843 3.6 1.6 4.4 1.6 5.275C1.582 6.1 1.8 7 2.4 7.785z"/><path d="M5.563 2.569c0 0.854-0.292 1.57-0.874 2.147c-0.577 0.57-1.288 0.855-2.131 0.855V4.931c0.645 0 1.199-0.232 1.662-0.697 c0.463-0.465 0.694-1.02 0.694-1.665H5.563z"/><path d="M8.987 3.372c0.199 0 0.4 0.1 0.5 0.213c0.142 0.1 0.2 0.3 0.2 0.511c0 0.201-0.071 0.372-0.213 0.5 S9.184 4.8 9 4.824c-0.199 0-0.369-0.071-0.511-0.213S8.262 4.3 8.3 4.096c0-0.2 0.071-0.372 0.212-0.513 C8.615 3.4 8.8 3.4 9 3.372z M8.987 4.541c0.121 0 0.224-0.043 0.31-0.131c0.087-0.087 0.13-0.192 0.13-0.314 S9.383 3.9 9.3 3.785C9.21 3.7 9.1 3.7 9 3.657c-0.122 0-0.226 0.042-0.312 0.128C8.59 3.9 8.5 4 8.5 4.1 S8.59 4.3 8.7 4.41C8.763 4.5 8.9 4.5 9 4.541z"/><path d="M10.438 4.787h2.47v2.47h-2.47V4.787z M10.637 4.986v2.072h2.072V4.986H10.637z"/><path d="M14.365 3.372c0.199 0 0.4 0.1 0.5 0.213c0.142 0.1 0.2 0.3 0.2 0.511c0 0.201-0.071 0.372-0.213 0.5 s-0.312 0.213-0.509 0.213c-0.199 0-0.369-0.071-0.511-0.213c-0.143-0.143-0.213-0.313-0.213-0.514c0-0.2 0.07-0.372 0.212-0.513 C13.993 3.4 14.2 3.4 14.4 3.372z M14.365 4.541c0.121 0 0.224-0.043 0.31-0.131c0.086-0.087 0.129-0.192 0.129-0.314 s-0.043-0.226-0.129-0.311c-0.086-0.085-0.189-0.128-0.31-0.128c-0.122 0-0.226 0.042-0.312 0.1 c-0.085 0.085-0.128 0.189-0.128 0.311s0.043 0.2 0.1 0.314C14.141 4.5 14.2 4.5 14.4 4.541z"/><path d="M17.158 5.195c0 0.897-0.303 1.709-0.91 2.438h-0.513V7.612c0.286-0.265 0.519-0.59 0.699-0.971 c0.213-0.455 0.318-0.938 0.318-1.447c0-0.506-0.105-0.985-0.318-1.438c-0.18-0.382-0.413-0.705-0.699-0.97V2.757h0.513 C16.855 3.5 17.2 4.3 17.2 5.195z"/><path d="M23.797 2.569c0 0.854-0.292 1.57-0.874 2.147c-0.577 0.57-1.288 0.855-2.131 0.855V4.931c0.645 0 1.199-0.232 1.662-0.697 c0.463-0.465 0.695-1.02 0.695-1.665H23.797z"/><path d="M31.286 7.646c-0.226-0.278-0.549-0.512-0.971-0.701c-0.47-0.21-0.964-0.315-1.483-0.315s-1.015 0.105-1.485 0.3 c-0.424 0.189-0.748 0.423-0.974 0.701h-0.021V7.188c0.294-0.294 0.679-0.524 1.153-0.69c0.437-0.149 0.879-0.224 1.326-0.224 c0.448 0 0.9 0.1 1.3 0.224c0.473 0.2 0.9 0.4 1.2 0.69v0.458H31.286z"/><path d="M38.286 5.561h-5.357V4.92h2.352V2.569h0.644V4.92h2.362V5.561z"/><path d="M43.638 5.566h-5.352V4.925h5.352V5.566z"/><path d="M49 5.561h-5.357V4.92h2.352V2.569h0.644V4.92H49V5.561z"/></g></svg>
|
||||
</div>
|
||||
|
||||
</div><!-- /content -->
|
||||
</div><!-- /contentWrapper -->
|
||||
</body>
|
||||
</html>
|
|
@ -1,16 +1,13 @@
|
|||
#import sickbeard
|
||||
#import os.path
|
||||
##
|
||||
#set global $title = 'Cache'
|
||||
#set global $header = 'Cache'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu='cache'#
|
||||
|
||||
#set global $topmenu = 'cache'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<style type="text/css">
|
||||
.sort_data {display:none}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
\$(document).ready(function()
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
#from sickbeard import db
|
||||
#from sickbeard.helpers import anon_url
|
||||
#import os.path
|
||||
|
||||
##
|
||||
#set global $title = 'Configuration'
|
||||
#set global $header = 'Configuration'
|
||||
|
||||
#set global $sbPath = '..'
|
||||
|
||||
#set global $topmenu = 'config'
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
@ -28,17 +26,20 @@
|
|||
##set disk_used = $disk.used / 2**30
|
||||
##set disk_free = $disk.free / 2**30
|
||||
##set disk_percent_used = $disk.percent
|
||||
|
||||
##
|
||||
<div id="config-content">
|
||||
<table class="infoTable" cellspacing="1" border="0" cellpadding="0" width="100%">
|
||||
<tr><td class="infoTableHeader">Version: </td><td class="infoTableCell">
|
||||
<tr>
|
||||
<td class="infoTableHeader">Version: </td>
|
||||
<td class="infoTableCell">
|
||||
#if $sickbeard.VERSION_NOTIFY
|
||||
BRANCH: ($sickbeard.BRANCH) / COMMIT: ($sickbeard.CUR_COMMIT_HASH) <!-- – build.date //--><br />
|
||||
#else
|
||||
You don't have version checking turned on, see "Check software updates" in Config > General.<br />
|
||||
#end if
|
||||
<em class="red-text">This is BETA software.</em>
|
||||
</td></tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="infoTableHeader">Config file:</td><td class="infoTableCell">$sickbeard.CONFIG_FILE</td></tr>
|
||||
<tr><td class="infoTableHeader">Database file:</td><td class="infoTableCell">$db.dbFilename()</td></tr>
|
||||
<tr><td class="infoTableHeader">Cache Dir:</td><td class="infoTableCell">$sickbeard.CACHE_DIR</td></tr>
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
#import sickbeard
|
||||
#from sickbeard.helpers import anon_url
|
||||
|
||||
##
|
||||
#set global $title = 'Config - Anime'
|
||||
#set global $header = 'Anime'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $topmenu = 'config'
|
||||
##
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/config.js?$sbPID"></script>
|
||||
|
@ -121,7 +120,6 @@
|
|||
</div><!-- /config-components //-->
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#import os.path
|
||||
#import sickbeard
|
||||
#import datetime
|
||||
#import locale
|
||||
#import sickbeard
|
||||
#from sickbeard.common import *
|
||||
#from sickbeard.sbdatetime import *
|
||||
#from sickbeard import config
|
||||
|
@ -10,13 +9,13 @@
|
|||
#from sickbeard.helpers import anon_url
|
||||
#from sickbeard.logger import reverseNames as file_logging_presets
|
||||
#from sickbeard.helpers import maybe_plural
|
||||
|
||||
##
|
||||
#set global $title = 'Config - General'
|
||||
#set global $header = 'General Configuration'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $topmenu = 'config'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
#if $varExists('header')
|
||||
|
@ -24,9 +23,10 @@
|
|||
#else
|
||||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
##
|
||||
#set $checked = ' checked="checked"'
|
||||
#set $selected = ' selected="selected"'
|
||||
|
||||
##
|
||||
#set $indexer = 0
|
||||
#if $sickbeard.INDEXER_DEFAULT
|
||||
#set $indexer = $sickbeard.INDEXER_DEFAULT
|
||||
|
@ -532,7 +532,7 @@
|
|||
<select id="branchVersion" class="form-control form-control-inline input-sm pull-left max300">
|
||||
<option>Loading list from github</option>
|
||||
</select>
|
||||
<input class="btn btn-inline" style="margin-left: 6px;" type="button" id="branchCheckout" value="Checkout Branch" disabled="disabled">
|
||||
<input class="btn btn-inline" style="margin-left:6px" type="button" id="branchCheckout" value="Checkout Branch" disabled="disabled">
|
||||
<div class="clear-left"><p>select branch to use (restart required)</p></div>
|
||||
</span>
|
||||
</label>
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
#import sickbeard
|
||||
#import re
|
||||
#from sickbeard.helpers import anon_url, starify
|
||||
|
||||
##
|
||||
#set global $title = 'Config - Notifications'
|
||||
#set global $header = 'Notifications'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $topmenu = 'config'
|
||||
##
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/configNotifications.js?$sbPID"></script>
|
||||
|
@ -43,7 +42,7 @@
|
|||
<span class="component-title">Enable</span>
|
||||
<span class="component-desc">
|
||||
<input type="checkbox" class="enabler" name="use_xbmc" id="use_xbmc" #if $sickbeard.USE_XBMC then "checked=\"checked\"" else ""# />
|
||||
<p>should SickGear send XBMC commands ?<p>
|
||||
<p>should SickGear send XBMC commands ?</p>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
@ -167,7 +166,7 @@
|
|||
<span class="component-title">Enable</span>
|
||||
<span class="component-desc">
|
||||
<input type="checkbox" class="enabler" name="use_kodi" id="use_kodi" #if $sickbeard.USE_KODI then "checked=\"checked\"" else ""# />
|
||||
<p>should SickGear send Kodi commands ?<p>
|
||||
<p>should SickGear send Kodi commands ?</p>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
@ -1248,7 +1247,7 @@
|
|||
<span class="component-title">Enable</span>
|
||||
<span class="component-desc">
|
||||
<input type="checkbox" class="enabler" name="use_pushalot" id="use_pushalot" #if $sickbeard.USE_PUSHALOT then "checked=\"checked\"" else ""# />
|
||||
<p>should SickGear send Pushalot notifications ?
|
||||
<p>should SickGear send Pushalot notifications ?</p>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
@ -1432,7 +1431,7 @@
|
|||
<span class="component-title">Step One</span>
|
||||
</label>
|
||||
<label>
|
||||
<span style="font-size: 11px;">Click the "Request Authorization" button.<br/> This will open a new page containing an auth key.<br/> <b>Note:</b> if nothing happens check your popup blocker.<br/></span>
|
||||
<span style="font-size:11px">Click the "Request Authorization" button.<br/> This will open a new page containing an auth key.<br/> <b>Note:</b> if nothing happens check your popup blocker.<br/></span>
|
||||
<input class="btn" type="button" value="Request Authorization" id="twitterStep1" />
|
||||
</label>
|
||||
</div>
|
||||
|
@ -1737,9 +1736,11 @@
|
|||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
<!--
|
||||
jQuery('#config-components').tabs();
|
||||
//-->
|
||||
</script>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,4 +1,3 @@
|
|||
#import os.path
|
||||
#import sickbeard
|
||||
#from sickbeard.common import *
|
||||
#from sickbeard.helpers import anon_url
|
||||
|
@ -6,13 +5,13 @@
|
|||
#from sickbeard import metadata
|
||||
#from sickbeard.metadata.generic import GenericMetadata
|
||||
#from sickbeard import naming
|
||||
|
||||
##
|
||||
#set global $title = 'Config - Post Processing'
|
||||
#set global $header = 'Post Processing'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $topmenu = 'config'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/configPostProcessing.js?$sbPID"></script>
|
||||
|
@ -23,9 +22,10 @@
|
|||
#else
|
||||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $checked = 'checked="checked"'
|
||||
#set $selected = 'selected="selected" class="selected"'
|
||||
|
||||
<div id="config" class="pp">
|
||||
<div id="config-content" class="linefix">
|
||||
|
||||
|
@ -1258,4 +1258,5 @@
|
|||
jQuery('#tv_download_dir').fileBrowser({ title: 'Select completed TV downloads directory' });
|
||||
//-->
|
||||
</script>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -2,13 +2,12 @@
|
|||
#from sickbeard.providers.generic import GenericProvider
|
||||
#from sickbeard.providers import thepiratebay
|
||||
#from sickbeard.helpers import anon_url, starify
|
||||
|
||||
##
|
||||
#set global $title="Config - Providers"
|
||||
#set global $header="Search Providers"
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $topmenu = 'config'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
@ -18,9 +17,6 @@
|
|||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
#set $html_selected = ' selected="selected"'
|
||||
#set $html_checked = 'checked="checked" '
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/configProviders.js?$sbPID"></script>
|
||||
<script type="text/javascript" src="$sbRoot/js/config.js?$sbPID"></script>
|
||||
|
||||
|
@ -63,6 +59,9 @@
|
|||
</script>
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $html_selected = ' selected="selected"'
|
||||
#set $html_checked = 'checked="checked" '
|
||||
<div id="config" class="search_providers">
|
||||
<div id="config-content">
|
||||
|
||||
|
@ -740,4 +739,5 @@
|
|||
jQuery('#config-components').tabs();
|
||||
//-->
|
||||
</script>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,13 +1,12 @@
|
|||
#import sickbeard
|
||||
#from sickbeard import clients
|
||||
#from sickbeard.helpers import starify
|
||||
|
||||
##
|
||||
#set global $title = 'Config - Episode Search'
|
||||
#set global $header = 'Search Settings'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $topmenu = 'config'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
@ -20,9 +19,9 @@
|
|||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $html_selected = ' selected="selected"'
|
||||
#set $html_checked = ' checked="checked"'
|
||||
|
||||
<div id="config">
|
||||
<div id="config-content" class="linefix">
|
||||
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
#from sickbeard import subtitles
|
||||
#import sickbeard
|
||||
#from sickbeard import subtitles
|
||||
#from sickbeard.helpers import anon_url
|
||||
|
||||
#set global $title="Config - Subtitles"
|
||||
#set global $header="Subtitles"
|
||||
|
||||
#set global $sbPath="../.."
|
||||
|
||||
#set global $topmenu="config"
|
||||
##
|
||||
#set global $title = 'Config - Subtitles'
|
||||
#set global $header = 'Subtitles'
|
||||
#set global $sbPath = '../..'
|
||||
#set global $topmenu = 'config'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/configSubtitles.js?$sbPID"></script>
|
||||
<script type="text/javascript" src="$sbRoot/js/config.js"></script>
|
||||
|
@ -157,4 +156,5 @@
|
|||
jQuery('#subtitles_dir').fileBrowser({title: 'Select Subtitles Download Directory'});
|
||||
//-->
|
||||
</script>
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,18 +1,18 @@
|
|||
#import sickbeard
|
||||
#import datetime
|
||||
#import re
|
||||
#from sickbeard import subtitles, sbdatetime, network_timezones
|
||||
#import sickbeard.helpers
|
||||
#from sickbeard.common import *
|
||||
#from sickbeard.helpers import anon_url
|
||||
#from lib import subliminal
|
||||
#import os.path, os
|
||||
#import datetime
|
||||
|
||||
##
|
||||
#set global $title = $show.name
|
||||
#set global $topmenu = 'home'
|
||||
#set $exceptions_string = ', '.join($show.exceptions)
|
||||
|
||||
#set global $page_body_attr = 'display-show'
|
||||
##
|
||||
#import os.path, os
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/lib/jquery.bookmarkscroll.js?$sbPID"></script>
|
||||
|
@ -35,10 +35,10 @@
|
|||
#if $sickbeard.FUZZY_DATING
|
||||
fuzzyMoment({
|
||||
containerClass: '.${fuzzydate}',
|
||||
dateHasTime : false,
|
||||
dateHasTime: !1,
|
||||
dateFormat: '${sickbeard.DATE_PRESET}',
|
||||
timeFormat: '${sickbeard.TIME_PRESET}',
|
||||
trimZero : #if $sickbeard.TRIM_ZERO then 'true' else 'false'#
|
||||
trimZero: #echo ('!1', '!0')[$sickbeard.TRIM_ZERO]#
|
||||
});
|
||||
#end if
|
||||
#raw
|
||||
|
@ -76,7 +76,7 @@
|
|||
#set $curShowType = $curShowList[0]
|
||||
#set $curShowList = $curShowList[1]
|
||||
#if 1 < len($sortedShowLists)
|
||||
$displayshowlist.append('\t\t\t<optgroup label="%s">' % $curShowType)
|
||||
#set void = $displayshowlist.append('\t\t\t<optgroup label="%s">' % $curShowType)
|
||||
#end if
|
||||
#for $curShow in $curShowList
|
||||
#set void = $displayshowlist.append('\t\t\t<option value="%s"%s>%s</option>' % ($curShow.indexerid, ('', ' selected="selected"')[$curShow == $show], $curShow.name))
|
||||
|
@ -85,8 +85,7 @@ $displayshowlist.append('\t\t\t<optgroup label="%s">' % $curShowType)
|
|||
#set void = $displayshowlist.append('\t\t\t</optgroup>')
|
||||
#end if
|
||||
#end for
|
||||
|
||||
#slurp
|
||||
##
|
||||
<div class="navShow"><img id="prevShow" src="$sbRoot/images/prev.png" alt="<<" title="$prev_title" class="addQTip" /></div>
|
||||
<select id="pickShow" class="form-control form-control-inline input-sm">
|
||||
#echo '\n'.join($displayshowlist)#
|
||||
|
@ -120,7 +119,7 @@ $displayshowlist.append('\t\t\t<optgroup label="%s">' % $curShowType)
|
|||
#if $seasonResults
|
||||
##There is a special/season_0?##
|
||||
#set $season_special = (0, 1)[0 == int($seasonResults[-1]['season'])]
|
||||
#slurp
|
||||
##
|
||||
#if not $sickbeard.DISPLAY_SHOW_SPECIALS and $season_special
|
||||
$seasonResults.pop(-1)
|
||||
#end if
|
||||
|
@ -396,7 +395,7 @@ $displayshowlist.append('\t\t\t<optgroup label="%s">' % $curShowType)
|
|||
#elif not $show.air_by_date and not $show.is_sports and $show.is_anime and $show.is_scene
|
||||
#set $scene_anime = True
|
||||
#end if
|
||||
#slurp
|
||||
##
|
||||
#if 0 == len($sqlResults)
|
||||
<div style="margin-top:50px"><h3>Episodes no longer exist for this show at the associated indexer</h3></div>
|
||||
#else:
|
||||
|
@ -405,7 +404,7 @@ $displayshowlist.append('\t\t\t<optgroup label="%s">' % $curShowType)
|
|||
#if not $epStr in $epCats or (0 == int($epResult['season']) and not $sickbeard.DISPLAY_SHOW_SPECIALS)
|
||||
#continue
|
||||
#end if
|
||||
#slurp
|
||||
##
|
||||
#if $curSeason != int($epResult['season'])
|
||||
#if 0 <= $curSeason
|
||||
</tbody>
|
||||
|
|
|
@ -4,17 +4,13 @@
|
|||
#from sickbeard import exceptions
|
||||
#from sickbeard import scene_exceptions
|
||||
#import sickbeard.blackandwhitelist
|
||||
|
||||
##
|
||||
#set global $title = 'Edit ' + $show.name
|
||||
#set global $header = 'Edit ' + $show.name
|
||||
|
||||
#set global $sbPath = '..'
|
||||
#set html_checked = ' checked="checked"'
|
||||
#set html_disabled = ' disabled="disabled"'
|
||||
|
||||
#set global $topmenu = 'home'
|
||||
##
|
||||
#import os.path
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/qualityChooser.js?$sbPID"></script>
|
||||
|
@ -61,6 +57,9 @@
|
|||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $html_checked = ' checked="checked"'
|
||||
#set $html_disabled = ' disabled="disabled"'
|
||||
<form action="editShow" method="post" id="addShowForm">
|
||||
<input type="hidden" name="show" value="$show.indexerid">
|
||||
|
||||
|
@ -317,4 +316,5 @@
|
|||
//-->
|
||||
</script>
|
||||
</div>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -4,13 +4,12 @@
|
|||
#from sickbeard.common import *
|
||||
#from sickbeard import sbdatetime
|
||||
#from sickbeard.helpers import anon_url
|
||||
|
||||
##
|
||||
#set global $title = 'Episode View'
|
||||
#set global $header = 'Episode View'
|
||||
|
||||
#set global $sbPath = '..'
|
||||
|
||||
#set global $topmenu = 'episodeView'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
@ -270,10 +269,10 @@
|
|||
#if $sickbeard.FUZZY_DATING:
|
||||
fuzzyMoment({
|
||||
containerClass: '.${fuzzydate}',
|
||||
dateHasTime : true,
|
||||
dateHasTime: !0,
|
||||
dateFormat: '${sickbeard.DATE_PRESET}',
|
||||
timeFormat: '${sickbeard.TIME_PRESET}',
|
||||
trimZero : #if $sickbeard.TRIM_ZERO then 'true' else 'false'#
|
||||
trimZero: #echo ('!1', '!0')[$sickbeard.TRIM_ZERO]#
|
||||
});
|
||||
#end if
|
||||
|
||||
|
@ -332,7 +331,7 @@
|
|||
<tr id="show-${show_id}" class="$show_div" data-rawname="$cur_result['show_name']">
|
||||
## forced to use a div to wrap airdate, the column sort went crazy with a span
|
||||
<td align="center" class="nowrap">
|
||||
<div class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdatetime($cur_result['localtime']).decode($sickbeard.SYS_ENCODING)</div><span class="sort_data">$cur_result['localtime'].strftime('%Y%m%d%H%M')</span>
|
||||
<div class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdatetime($cur_result['localtime']).decode($sickbeard.SYS_ENCODING)</div><span class="sort-data">$cur_result['localtime'].strftime('%Y%m%d%H%M')</span>
|
||||
</td>
|
||||
|
||||
<td class="tvShow"><a href="$sbRoot/home/displayShow?show=${cur_result['showid']}" data-name="$cur_result['data_show_name']">$cur_result['show_name']</a>
|
||||
|
@ -366,9 +365,9 @@
|
|||
#end if
|
||||
</td>
|
||||
|
||||
<td align="center" style="vertical-align: middle;">
|
||||
<td align="center" style="vertical-align:middle">
|
||||
#if sickbeard.USE_IMDB_INFO and $cur_result['imdb_id']:
|
||||
<a href="<%= anon_url('http://www.imdb.com/title/', cur_result['imdb_id']) %>" rel="noreferrer" onclick="window.open(this.href, '_blank'); return false" title="http://www.imdb.com/title/${cur_result['imdb_id']}"><img alt="[imdb]" height="16" width="16" src="$sbRoot/images/imdb.png" />
|
||||
<a href="<%= anon_url('http://www.imdb.com/title/', cur_result['imdb_id']) %>" rel="noreferrer" onclick="window.open(this.href, '_blank'); return false" title="http://www.imdb.com/title/${cur_result['imdb_id']}"><img alt="[imdb]" height="16" width="16" src="$sbRoot/images/imdb.png" /></a>
|
||||
#end if
|
||||
<a href="<%= anon_url(sickbeard.indexerApi(cur_indexer).config['show_url'], cur_result['showid']) %>" rel="noreferrer" onclick="window.open(this.href, '_blank'); return false" title="$sickbeard.indexerApi($cur_indexer).config['show_url']${cur_result['showid']}"><img alt="$sickbeard.indexerApi($cur_indexer).name" height="16" width="16" src="$sbRoot/images/$sickbeard.indexerApi($cur_indexer).config['icon']" /></a>
|
||||
</td>
|
||||
|
@ -413,13 +412,13 @@
|
|||
#set $fuzzydate = 'airdate'
|
||||
#if $sickbeard.FUZZY_DATING:
|
||||
fuzzyMoment({
|
||||
dtInline : true,
|
||||
dtInline: !0,
|
||||
dtGlue: ' at ',
|
||||
containerClass: '.${fuzzydate}',
|
||||
dateHasTime : true,
|
||||
dateHasTime: !0,
|
||||
dateFormat: '${sickbeard.DATE_PRESET}',
|
||||
timeFormat: '${sickbeard.TIME_PRESET}',
|
||||
trimZero : #if $sickbeard.TRIM_ZERO then 'true' else 'false'#
|
||||
trimZero: #echo ('!1', '!0')[$sickbeard.TRIM_ZERO]#
|
||||
});
|
||||
#end if
|
||||
});
|
||||
|
|
|
@ -1,32 +1,33 @@
|
|||
#import sickbeard
|
||||
#from sickbeard import classes
|
||||
#from sickbeard.common import *
|
||||
#set global $header="Logs & Errors"
|
||||
#set global $title="Logs & Errors"
|
||||
|
||||
#set global $sbPath = ".."
|
||||
|
||||
#set global $topmenu="errorlogs"#
|
||||
##
|
||||
#set global $header = 'Logs & Errors'
|
||||
#set global $title = 'Logs & Errors'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'errorlogs'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
#if $varExists('header')
|
||||
<h1 class="header">$header</h1>
|
||||
#else
|
||||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
<div class="align-left"><pre>
|
||||
#if $classes.ErrorViewer.errors:
|
||||
#for $curError in sorted($classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]:
|
||||
$curError.time $curError.message
|
||||
#if $classes.ErrorViewer.errors
|
||||
#for $curError in sorted($classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]
|
||||
#echo '%s %s' % ($curError.time, $curError.message)
|
||||
#end for
|
||||
#end if
|
||||
</pre>
|
||||
</div>
|
||||
</pre></div>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
<!--
|
||||
window.setInterval( "location.reload(true)", 600000); // Refresh every 10 minutes
|
||||
window.setInterval('location.reload(true)', 600000); // Refresh every 10 minutes
|
||||
//-->
|
||||
</script>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,14 +1,13 @@
|
|||
#import sickbeard
|
||||
#set global $title=""
|
||||
|
||||
#set global $sbPath="../.."
|
||||
|
||||
|
||||
#set global $topmenu="home"#
|
||||
##
|
||||
#set global $title = ''
|
||||
#set global $sbPath = '../..'
|
||||
#set global $topmenu="home"
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<h2>$subject</h2>
|
||||
$message
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,27 +1,23 @@
|
|||
#import sickbeard
|
||||
#import os.path
|
||||
#import datetime
|
||||
#import re
|
||||
#from sickbeard.common import *
|
||||
#from sickbeard import sbdatetime
|
||||
#from sickbeard import history
|
||||
#from sickbeard import providers
|
||||
#from sickbeard import sbdatetime
|
||||
#from sickbeard.providers import generic
|
||||
#from sickbeard.common import *
|
||||
##
|
||||
#set global $title = 'History'
|
||||
#set global $header = 'History'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'history'
|
||||
#set $layout = $sickbeard.HISTORY_LAYOUT
|
||||
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<style type="text/css">
|
||||
.sort_data {display:none}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
\$.tablesorter.addParser({
|
||||
id: 'cDate',
|
||||
is: function(s) {
|
||||
|
@ -68,17 +64,17 @@
|
|||
#if $sickbeard.FUZZY_DATING
|
||||
fuzzyMoment({
|
||||
containerClass: '.${fuzzydate}',
|
||||
dateHasTime : true,
|
||||
dateHasTime: !0,
|
||||
dateFormat: '${sickbeard.DATE_PRESET}',
|
||||
timeFormat: '${sickbeard.TIME_PRESET_W_SECONDS}',
|
||||
trimZero : #echo ('false', 'true')[$sickbeard.TRIM_ZERO]#,
|
||||
trimZero: #echo ('!1', '!0')[$sickbeard.TRIM_ZERO]#,
|
||||
dtGlue: ', '
|
||||
});
|
||||
#end if
|
||||
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
|
||||
#if $varExists('header')
|
||||
<h1 class="header">$header</h1>
|
||||
#else
|
||||
|
@ -86,7 +82,7 @@
|
|||
#end if
|
||||
|
||||
#set $html_selected = ' selected="selected"'
|
||||
|
||||
##
|
||||
<div class="h2footer pull-right">Limit:
|
||||
<select name="limit" id="limit" class="form-control form-control-inline input-sm">
|
||||
<option value="100"#echo ('', $html_selected)['100' == $limit]#>100</option>
|
||||
|
@ -127,7 +123,7 @@
|
|||
#set $curStatus, $curQuality = $Quality.splitCompositeStatus(int($hItem['action']))
|
||||
<tr>
|
||||
#set $curdatetime = $datetime.datetime.strptime(str($hItem['date']), $history.dateFormat)
|
||||
<td><div class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdatetime($curdatetime, show_seconds=True)</div><span class="sort_data">$time.mktime($curdatetime.timetuple())</span></td>
|
||||
<td><div class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdatetime($curdatetime, show_seconds=True)</div><span class="sort-data">$time.mktime($curdatetime.timetuple())</span></td>
|
||||
<td class="tvShow"><a href="$sbRoot/home/displayShow?show=$hItem['showid']#season-$hItem['season']">$hItem['show_name'] - <%= 'S%02i' % int(hItem['season']) + 'E%02i' % int(hItem['episode']) %>#if 'proper' in $hItem['resource'].lower or 'repack' in $hItem['resource'].lower then ' <span class="quality Proper">Proper</span>' else ''#</a></td>
|
||||
<td#echo ('', ' class="subtitles_column"')[$curStatus == SUBTITLED]#>
|
||||
#if SUBTITLED == $curStatus
|
||||
|
@ -229,7 +225,7 @@
|
|||
#end if
|
||||
#end for
|
||||
<tr>
|
||||
<td><div class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdatetime($curdatetime, show_seconds=True)</div><span class="sort_data">$time.mktime($curdatetime.timetuple())</span></td>
|
||||
<td><div class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdatetime($curdatetime, show_seconds=True)</div><span class="sort-data">$time.mktime($curdatetime.timetuple())</span></td>
|
||||
<td class="tvShow">
|
||||
<span><a href="$sbRoot/home/displayShow?show=$hItem['show_id']#season-$hItem['season']">$hItem['show_name'] - <%= 'S%02i' % int(hItem['season']) + 'E%02i' % int(hItem['episode']) %>#if 'proper' in $hItem['resource'].lower or 'repack' in $hItem['resource'].lower then ' <span class="quality Proper">Proper</span>' else ''#</a></span>
|
||||
</td>
|
||||
|
@ -259,4 +255,5 @@
|
|||
#end if
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#set global $header = 'Show List'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'home'
|
||||
#set global $page_body_attr = 'show-list'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
@ -44,7 +45,7 @@
|
|||
});
|
||||
|
||||
\$(document).ready(function(){
|
||||
#slurp
|
||||
##
|
||||
#for $curShowlist in $showlists
|
||||
#set $curListID = $curShowlist[0]
|
||||
#if 'poster' != $layout
|
||||
|
@ -56,7 +57,7 @@
|
|||
2: function(node) { return \$(node).find('span').text().toLowerCase(); },
|
||||
3: function(node) { return \$(node).find('span').text().toLowerCase(); },
|
||||
4: function(node) { return \$(node).find('span').attr('data-progress'); },
|
||||
5: function(node) { return \$(node).find('img').attr('alt'); }
|
||||
5: function(node) { return \$(node).find('i').attr('alt'); }
|
||||
},
|
||||
widgets: ['saveSort', 'zebra', 'stickyHeaders', 'filter'],
|
||||
headers: {
|
||||
|
@ -73,7 +74,6 @@
|
|||
});
|
||||
|
||||
\$.tablesorter.filter.bindSearch( '#$curListID', \$('.search') );
|
||||
|
||||
#else
|
||||
|
||||
var \$container = [\$('#$curListID')]
|
||||
|
@ -103,21 +103,19 @@
|
|||
},
|
||||
network: '[data-network]',
|
||||
progress: function( itemElem ) {
|
||||
var progress = \$( itemElem ).children('.item-data').attr('data-progress');
|
||||
var progress = \$( itemElem ).children('.sort-data').attr('data-progress');
|
||||
return progress.length && parseInt( progress, 10 ) || Number.NEGATIVE_INFINITY;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
\$('#postersort').on( 'change', function() {
|
||||
var sortValue = this.value;
|
||||
\$('#$curListID').isotope({ sortBy: sortValue });
|
||||
\$.get(this.options[this.selectedIndex].getAttribute('data-sort'));
|
||||
});
|
||||
|
||||
|
||||
\$('#postersortdirection').on( 'change', function() {
|
||||
var sortDirection = this.value;
|
||||
sortDirection = sortDirection == 'true';
|
||||
|
@ -133,17 +131,16 @@
|
|||
$(this).remove();
|
||||
});
|
||||
#end raw
|
||||
|
||||
##
|
||||
#set $fuzzydate = 'airdate'
|
||||
#if $sickbeard.FUZZY_DATING
|
||||
|
||||
fuzzyMoment({
|
||||
dtInline : #if $layout == 'poster' then 'true' else 'false'#,
|
||||
dtInline: #echo ('!1', '!0')['poster' == $layout]#,
|
||||
containerClass: '.${fuzzydate}',
|
||||
dateHasTime : false,
|
||||
dateHasTime: !1,
|
||||
dateFormat: '${sickbeard.DATE_PRESET}',
|
||||
timeFormat: '${sickbeard.TIME_PRESET}',
|
||||
trimZero : #if $sickbeard.TRIM_ZERO then 'true' else 'false'#
|
||||
trimZero: #echo ('!1', '!0')[$sickbeard.TRIM_ZERO]#
|
||||
});
|
||||
#end if
|
||||
#if $sickbeard.HOME_SEARCH_FOCUS
|
||||
|
@ -155,7 +152,7 @@
|
|||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
##
|
||||
#if $varExists('header')
|
||||
|
||||
<h1 class="header" style="margin-bottom:0">$showlists[0][1]</h1>
|
||||
|
@ -171,6 +168,7 @@
|
|||
<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 resetanime btn btn-inline" tabindex="$tab#set $tab += 1#">Reset Search</button>
|
||||
</div>
|
||||
|
||||
<span class="pull-right not-poster">Layout:
|
||||
#else
|
||||
|
||||
|
@ -185,7 +183,6 @@
|
|||
<option value="$sbRoot/setHomeLayout/?layout=simple"#echo $selected if 'simple' == sickbeard.HOME_LAYOUT else ''#>Simple</option>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
#if 'poster' == $layout
|
||||
|
||||
<span>Sort By:
|
||||
|
@ -196,6 +193,7 @@
|
|||
<option value="progress" data-sort="$sbRoot/setPosterSortBy/?sort=progress"#echo $selected if 'progress' == sickbeard.POSTER_SORTBY else ''#>Progress</option>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<span style="margin:0 0 0 5px">Sort Order:
|
||||
<select id="postersortdirection" class="form-control form-control-inline input-sm" tabindex="$tab#set $tab += 1#">
|
||||
<option value="true" data-sort="$sbRoot/setPosterSortDir/?direction=1"#echo $selected if 1 == sickbeard.POSTER_SORTDIR else ''#>Asc</option>
|
||||
|
@ -205,45 +203,45 @@
|
|||
|
||||
#end if
|
||||
</div><!-- /HomeLayout -->
|
||||
|
||||
##
|
||||
#for $curShowlist in $showlists
|
||||
#set $curListID = $curShowlist[0]
|
||||
#set $curListName = $curShowlist[1]
|
||||
#set $myShowList = $list($curShowlist[2])
|
||||
#if $curShowlist != $showlists[0]
|
||||
|
||||
##
|
||||
<h1 class="header">$curListName</h1>
|
||||
|
||||
#end if
|
||||
|
||||
##
|
||||
#if 'poster' == $layout
|
||||
|
||||
##
|
||||
<div id="$curListID" class="clearfix container">
|
||||
<div class="posterview">
|
||||
|
||||
##
|
||||
#for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList
|
||||
|
||||
##
|
||||
#if $curLoadingShow.show != None and $curLoadingShow.show in $sickbeard.showList
|
||||
#continue
|
||||
#end if
|
||||
|
||||
##
|
||||
#if None is $curLoadingShow.show
|
||||
|
||||
##
|
||||
<div class="show" data-name="0" data-date="010101" data-network="0">
|
||||
<span class="item-data" data-progress="101" style="display:none"></span>
|
||||
<img alt="" title="$curLoadingShow.show_name" class="show-image" style="border-bottom:1px solid #111" src="$sbRoot/images/poster.png" />
|
||||
<div class="show-details">
|
||||
<div class="show-add">Loading... ($curLoadingShow.show_name)</div>
|
||||
</div>
|
||||
<span class="sort-data" data-progress="101"></span>
|
||||
</div>
|
||||
|
||||
##
|
||||
#end if
|
||||
|
||||
##
|
||||
#end for
|
||||
|
||||
##
|
||||
$myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||
#for $curShow in $myShowList
|
||||
|
||||
##
|
||||
#set $cur_airs_next = ''
|
||||
#set $cur_snatched = 0
|
||||
#set $cur_downloaded = 0
|
||||
|
@ -257,26 +255,26 @@
|
|||
#set $display_status = 'Ended'
|
||||
#end if
|
||||
#end if
|
||||
|
||||
##
|
||||
#if $curShow.indexerid in $show_stat
|
||||
#set $cur_airs_next = $show_stat[$curShow.indexerid]['ep_airs_next']
|
||||
|
||||
##
|
||||
#set $cur_snatched = $show_stat[$curShow.indexerid]['ep_snatched']
|
||||
#if not $cur_snatched
|
||||
#set $cur_snatched = 0
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $cur_downloaded = $show_stat[$curShow.indexerid]['ep_downloaded']
|
||||
#if not $cur_downloaded
|
||||
#set $cur_downloaded = 0
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $cur_total = $show_stat[$curShow.indexerid]['ep_total']
|
||||
#if not $cur_total
|
||||
#set $cur_total = 0
|
||||
#end if
|
||||
#end if
|
||||
|
||||
##
|
||||
#if $cur_total != 0
|
||||
#set $download_stat = str($cur_downloaded)
|
||||
#set $download_stat_tip = 'Downloaded: ' + str($cur_downloaded)
|
||||
|
@ -290,15 +288,15 @@
|
|||
#set $download_stat = '?'
|
||||
#set $download_stat_tip = 'no data'
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $nom = $cur_downloaded
|
||||
#set $den = $cur_total
|
||||
#if $den == 0
|
||||
#set $den = 1
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $progressbar_percent = $nom * 100 / $den
|
||||
|
||||
##
|
||||
#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')
|
||||
|
@ -311,9 +309,8 @@
|
|||
#set $data_date = '500000000100'
|
||||
#end if
|
||||
#end if
|
||||
|
||||
##
|
||||
<div id="show$curShow.indexerid" class="show" data-name="$curShow.name" data-date="$data_date" data-network="$curShow.network">
|
||||
<span class="item-data" data-progress="$progressbar_percent" style="display:none"></span>
|
||||
<div class="show-image">
|
||||
<a href="$sbRoot/home/displayShow?show=$curShow.indexerid"><img alt="" class="show-image" src="$sbRoot/showPoster/?show=$curShow.indexerid&which=poster_thumb" /></a>
|
||||
</div>
|
||||
|
@ -341,7 +338,7 @@
|
|||
#end if
|
||||
</div><!-- /show-date -->
|
||||
|
||||
<table width="100%" cellspacing="1" border="0" cellpadding="0">
|
||||
<table width="100%" border="0">
|
||||
<tr>
|
||||
<td class="show-table">
|
||||
<span class="show-dlstats" title="$download_stat_tip">$download_stat</span>
|
||||
|
@ -365,7 +362,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<span class="sort-data" data-progress="$progressbar_percent"></span>
|
||||
</div><!-- /show$curShow.indexerid -->
|
||||
|
||||
#end for
|
||||
|
@ -377,8 +374,7 @@
|
|||
########################
|
||||
#else
|
||||
|
||||
<table id="$curListID" class="tablesorter" cellspacing="1" border="0" cellpadding="0">
|
||||
|
||||
<table id="$curListID" class="tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Next Ep</th>
|
||||
|
@ -393,8 +389,8 @@
|
|||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th rowspan="1" colspan="1" align="center"><a href="$sbRoot/home/addShows/">Add Show</a></th>
|
||||
<th rowspan="1" colspan="6"></th>
|
||||
<th><a href="$sbRoot/home/addShows/">Add Show</a></th>
|
||||
<th colspan="6"></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
|
@ -403,10 +399,10 @@
|
|||
#if $curLoadingShow.show != None and $curLoadingShow.show in $sickbeard.showList
|
||||
#continue
|
||||
#end if
|
||||
|
||||
##
|
||||
<tr>
|
||||
<td align="center">(loading)</td>
|
||||
<td>
|
||||
<td>(loading)</td>
|
||||
<td class="text-left">
|
||||
#if None is $curLoadingShow.show
|
||||
Loading... ($curLoadingShow.show_name)
|
||||
#else
|
||||
|
@ -420,35 +416,36 @@
|
|||
<td></td>
|
||||
</tr>
|
||||
#end for
|
||||
|
||||
$myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||
##
|
||||
#set void = $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||
##
|
||||
#for $curShow in $myShowList
|
||||
#slurp
|
||||
##
|
||||
#set $cur_airs_next = ''
|
||||
#set $cur_snatched = 0
|
||||
#set $cur_downloaded = 0
|
||||
#set $cur_total = 0
|
||||
#set $download_stat_tip = ''
|
||||
#slurp
|
||||
##
|
||||
#if $curShow.indexerid in $show_stat
|
||||
#set $cur_airs_next = $show_stat[$curShow.indexerid]['ep_airs_next']
|
||||
#slurp
|
||||
##
|
||||
#set $cur_snatched = $show_stat[$curShow.indexerid]['ep_snatched']
|
||||
#if not $cur_snatched
|
||||
#set $cur_snatched = 0
|
||||
#end if
|
||||
#slurp
|
||||
##
|
||||
#set $cur_downloaded = $show_stat[$curShow.indexerid]['ep_downloaded']
|
||||
#if not $cur_downloaded
|
||||
#set $cur_downloaded = 0
|
||||
#end if
|
||||
#slurp
|
||||
##
|
||||
#set $cur_total = $show_stat[$curShow.indexerid]['ep_total']
|
||||
#if not $cur_total
|
||||
#set $cur_total = 0
|
||||
#end if
|
||||
#end if
|
||||
#slurp
|
||||
##
|
||||
#if $cur_total != 0
|
||||
#set $download_stat = str($cur_downloaded)
|
||||
#set $download_stat_tip = 'Downloaded: ' + str($cur_downloaded)
|
||||
|
@ -462,27 +459,25 @@
|
|||
#set $download_stat = '?'
|
||||
#set $download_stat_tip = 'no data'
|
||||
#end if
|
||||
#slurp
|
||||
##
|
||||
#set $nom = $cur_downloaded
|
||||
#set $den = $cur_total
|
||||
#if $den == 0
|
||||
#set $den = 1
|
||||
#end if
|
||||
#slurp
|
||||
##
|
||||
#set $progressbar_percent = $nom * 100 / $den
|
||||
|
||||
##
|
||||
<tr>
|
||||
#if $cur_airs_next
|
||||
#set $ldatetime = $sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network))
|
||||
|
||||
<td align="center" class="nowrap"><div class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdate($ldatetime)</div><span class="sort_data">$ldatetime.strftime('%Y%m%d%H%M')</span></td>
|
||||
<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>
|
||||
#else
|
||||
|
||||
<td align="center" class="nowrap"></td>
|
||||
<td></td>
|
||||
#end if
|
||||
#if 'small' == $layout
|
||||
|
||||
<td class="tvShow">
|
||||
<td class="tvShow text-left">
|
||||
<div class="imgsmallposter $layout">
|
||||
<a href="$sbRoot/showPoster/?show=$curShow.indexerid&which=poster" rel="dialog" title="$curShow.name">
|
||||
<img src="$sbRoot/showPoster/?show=$curShow.indexerid&which=poster_thumb" class="$layout" alt="$curShow.indexerid"/>
|
||||
|
@ -492,52 +487,51 @@
|
|||
</td>
|
||||
#else if 'banner' == $layout
|
||||
|
||||
<td>
|
||||
<span style="display:none">$curShow.name</span>
|
||||
<td class="text-left">
|
||||
<div class="imgbanner $layout">
|
||||
<a href="$sbRoot/home/displayShow?show=$curShow.indexerid">
|
||||
<img src="$sbRoot/showPoster/?show=$curShow.indexerid&which=banner" class="$layout" alt="$curShow.indexerid" title="$curShow.name" />
|
||||
</a>
|
||||
</div>
|
||||
<span class="sort-data">$curShow.name</span>
|
||||
</td>
|
||||
#else if 'simple' == $layout
|
||||
|
||||
<td class="tvShow"><a href="$sbRoot/home/displayShow?show=$curShow.indexerid">$curShow.name</a></td>
|
||||
<td class="tvShow text-left"><a href="$sbRoot/home/displayShow?show=$curShow.indexerid">$curShow.name</a></td>
|
||||
#end if
|
||||
|
||||
#if 'simple' != $layout
|
||||
#set $img_text = ($curShow.network, 'No Network')[None is $curShow.network]
|
||||
|
||||
<td align="center">
|
||||
<span style="display:none">$curShow.network</span>
|
||||
<td>
|
||||
<img width="54" height="27" src="$sbRoot/images/network/$network_images[$curShow.indexerid]" alt="#echo '%s" title="%s' % ($img_text, $img_text)#" />
|
||||
<span class="sort-data">$curShow.network</span>
|
||||
</td>
|
||||
#else
|
||||
|
||||
<td>
|
||||
<td class="text-left">
|
||||
<span>$curShow.network</span>
|
||||
</td>
|
||||
#end if
|
||||
|
||||
#if $curShow.quality in $qualityPresets
|
||||
|
||||
<td align="center"><span class="quality $qualityPresetStrings[$curShow.quality]">$qualityPresetStrings[$curShow.quality]</span></td>
|
||||
<td><span class="quality $qualityPresetStrings[$curShow.quality]">$qualityPresetStrings[$curShow.quality]</span></td>
|
||||
#else
|
||||
|
||||
<td align="center"><span class="quality Custom">Custom</span></td>
|
||||
<td><span class="quality Custom">Custom</span></td>
|
||||
#end if
|
||||
|
||||
<td align="center">
|
||||
<span class="item-data" data-progress="$progressbar_percent" style="display:none"></span>
|
||||
<td>
|
||||
<div id="progressbar$curShow.indexerid" style="position:relative">
|
||||
<div class="progressbarText" title="$download_stat_tip">$download_stat</div>
|
||||
</div>
|
||||
<span class="sort-data" data-progress="$progressbar_percent"></span>
|
||||
</td>
|
||||
|
||||
<td align="center">
|
||||
<img src="$sbRoot/images/#if int($curShow.paused) == 0 and $curShow.status != 'Ended' then 'yes16.png" alt="Y"' else 'no16.png" alt="N"'# width="16" height="16" />
|
||||
<td>
|
||||
<i class=#echo '"%s" alt="%s"' % (('no', 'N'),('yes', 'Y'))[0 == int($curShow.paused) and 'Ended' != $curShow.status]#></i>
|
||||
</td>
|
||||
|
||||
<td align="center">
|
||||
<td>
|
||||
#set $display_status = $curShow.status
|
||||
#if None is not $display_status
|
||||
#if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status)
|
||||
|
@ -548,7 +542,6 @@
|
|||
#end if
|
||||
$display_status
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
#end for
|
||||
</tbody>
|
||||
|
@ -556,13 +549,13 @@
|
|||
|
||||
#end if
|
||||
#end for
|
||||
|
||||
##
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
#raw
|
||||
$(document).ready(function(){
|
||||
$('div[id^="progressbar"]').each(function(k, v){
|
||||
var progress = parseInt($(this).siblings('span[class="item-data"]').attr('data-progress'), 10) , elId = '#' + $(this).attr('id'), v = 80;
|
||||
var progress = parseInt($(this).siblings('span[class="sort-data"]').attr('data-progress'), 10) , elId = '#' + $(this).attr('id'), v = 80;
|
||||
$(elId).progressbar({value:progress});
|
||||
if (progress < 80) {
|
||||
v = progress >= 40 ? 60 : (progress >= 20 ? 40 : 20);
|
||||
|
@ -573,4 +566,5 @@ $(document).ready(function(){
|
|||
#end raw
|
||||
//-->
|
||||
</script>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,13 +1,12 @@
|
|||
#import os.path
|
||||
#import sickbeard
|
||||
#from sickbeard.common import *
|
||||
##
|
||||
#set global $title = 'Existing Show'
|
||||
#set global $header = 'Existing Show'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $statpath = '../..'
|
||||
#set global $topmenu = 'home'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
@ -80,4 +79,5 @@
|
|||
<input class="btn btn-primary" type="button" value="Submit" id="submitShowDirs" />
|
||||
|
||||
</form>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,15 +1,13 @@
|
|||
#import os.path
|
||||
#import urllib
|
||||
#import sickbeard
|
||||
#import urllib
|
||||
##
|
||||
#set global $title = 'Add Show'
|
||||
#set global $header = 'Add Show'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $statpath = '../..'
|
||||
#set global $topmenu = 'home'
|
||||
##
|
||||
#import os.path
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
#if $varExists('header')
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
#import os.path
|
||||
#import sickbeard
|
||||
#from sickbeard.helpers import anon_url
|
||||
|
||||
##
|
||||
#set global $header = 'New Show'
|
||||
#set global $title = 'New Show'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $statpath = '../..'
|
||||
#set global $topmenu = 'home'
|
||||
##
|
||||
#import os.path
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/formwizard.js?$sbPID"></script>
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
#import sickbeard
|
||||
##
|
||||
#set global $header="Post Processing"
|
||||
#set global $title="Post Processing"
|
||||
|
||||
#set global $sbPath="../.."
|
||||
|
||||
#set global $topmenu="home"#
|
||||
#set global $topmenu="home"
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
|
||||
<div id="content800">
|
||||
#if $varExists('header')
|
||||
<h1 class="header">$header</h1>
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
#import os.path
|
||||
#import json
|
||||
#import sickbeard
|
||||
##
|
||||
#set global $header = "Recommended Shows"
|
||||
#set global $title = "Recommended Shows"
|
||||
|
||||
#set global $sbPath = "../.."
|
||||
|
||||
#set global $statpath="../.."#
|
||||
#set global $topmenu="home"#
|
||||
#set global $statpath = "../.."
|
||||
#set global $topmenu = "home"
|
||||
##
|
||||
#import os.path
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/formwizard.js?$sbPID"></script>
|
||||
|
|
|
@ -5,13 +5,12 @@
|
|||
#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='episodeView'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#import re
|
||||
#from sickbeard import db, sbdatetime
|
||||
#from sickbeard.common import *
|
||||
|
||||
##
|
||||
</div><!-- /content -->
|
||||
</div><!-- /contentWrapper -->
|
||||
|
||||
|
@ -23,12 +23,12 @@
|
|||
% ($today, str($SKIPPED), str($WANTED))\
|
||||
+ ' OR (status IN %s) OR (status IN %s))) AS ep_total FROM tv_episodes tv_eps LIMIT 1'\
|
||||
% ($status_quality, $status_download)
|
||||
#slurp
|
||||
##
|
||||
#set $sql_result = $my_db.select($sql_statement)
|
||||
#slurp
|
||||
##
|
||||
#set $shows_total = len($sickbeard.showList)
|
||||
#set $shows_active = len([show for show in $sickbeard.showList if 0 == show.paused and 'Ended' != show.status])
|
||||
#slurp
|
||||
##
|
||||
#if $sql_result:
|
||||
#set $ep_snatched = $sql_result[0]['ep_snatched']
|
||||
#set $ep_downloaded = $sql_result[0]['ep_downloaded']
|
||||
|
@ -39,7 +39,7 @@
|
|||
#set $ep_total = 0
|
||||
#end if
|
||||
#set $ep_percentage = '' if $ep_total == 0 else '(<span class="footerhighlight">%s%%</span>)' % re.sub(r'(\d+)(\.\d)\d+', r'\1\2', str((float($ep_downloaded)/float($ep_total))*100))
|
||||
#slurp
|
||||
##
|
||||
#try
|
||||
#set $localRoot = $sbRoot
|
||||
#except NotFound
|
||||
|
@ -50,7 +50,7 @@
|
|||
#except NotFound
|
||||
#set $localheader = ''
|
||||
#end try
|
||||
#slurp
|
||||
##
|
||||
<span class="footerhighlight">$shows_total</span> shows (<span class="footerhighlight">$shows_active</span> active)
|
||||
| <span class="footerhighlight">$ep_downloaded</span><%=
|
||||
(
|
||||
|
@ -62,10 +62,9 @@
|
|||
%> / <span class="footerhighlight">$ep_total</span> episodes downloaded $ep_percentage
|
||||
| recent search: <span class="footerhighlight"><%= str(sickbeard.recentSearchScheduler.timeLeft()).split('.')[0] %></span>
|
||||
| backlog search: <span class="footerhighlight"><%= str(sickbeard.backlogSearchScheduler.timeLeft()).split('.')[0] %></span>
|
||||
| full backlog: <span class="footerhighlight"><%= sbdatetime.sbdatetime.sbfdate(sickbeard.backlogSearchScheduler.nextRun()) %></span>
|
||||
#slurp
|
||||
| full backlog: <span class="footerhighlight"><%= sbdatetime.sbdatetime.sbfdate(sickbeard.backlogSearchScheduler.nextRun()) %>
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -32,6 +32,7 @@
|
|||
<meta name="msapplication-TileColor" content="#2b5797">
|
||||
<meta name="msapplication-TileImage" content="$sbRoot/images/ico/mstile-144x144.png">
|
||||
<meta name="msapplication-config" content="$sbRoot/css/browserconfig.xml">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="$sbRoot/css/lib/bootstrap.css?$sbPID"/>
|
||||
<link rel="stylesheet" type="text/css" href="$sbRoot/css/browser.css?$sbPID" />
|
||||
<link rel="stylesheet" type="text/css" href="$sbRoot/css/lib/jquery-ui-1.10.4.custom.css?$sbPID" />
|
||||
|
@ -64,7 +65,7 @@
|
|||
#end if
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
<!--
|
||||
var sbRoot = '$sbRoot', anonURL = '$sickbeard.ANON_REDIRECT', themeSpinner = '#echo ('', '-dark')['dark' == $sickbeard.THEME_NAME]#'
|
||||
var sbRoot = '$sbRoot', anonURL = '$sickbeard.ANON_REDIRECT', themeSpinner = '#echo ('', '-dark')['dark' == $sickbeard.THEME_NAME]#',
|
||||
top_image_html = '<img src="$sbRoot/images/top.gif" width="31" height="11" alt="Jump to top" />';
|
||||
//-->
|
||||
</script>
|
||||
|
@ -108,12 +109,11 @@
|
|||
$('#SubMenu a[href$="/home/updateKODI/"]').addClass('btn').html('<i class="sgicon-kodi"></i>Update Kodi');
|
||||
}
|
||||
#end raw
|
||||
|
||||
\$(document).ready(function(){
|
||||
|
||||
initActions();
|
||||
\$("#NAV$topmenu").addClass("active");
|
||||
\$('#NAV$topmenu').addClass('active');
|
||||
\$('.dropdown-toggle').dropdownHover();
|
||||
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
|
@ -204,7 +204,6 @@
|
|||
<li><a href="$sbRoot/config/general/" tabindex="$tab#set $tab += 1#"><i class="sgicon-config"></i>General</a></li>
|
||||
<li><a href="$sbRoot/config/search/" tabindex="$tab#set $tab += 1#"><i class="sgicon-search"></i>Search Settings</a></li>
|
||||
<li><a href="$sbRoot/config/providers/" tabindex="$tab#set $tab += 1#"><i class="sgicon-search"></i>Search Providers</a></li>
|
||||
<li><a href="$sbRoot/config/providers/" tabindex="$tab#set $tab += 1#"><i class="sgicon-search"></i>Search Providers</a></li>
|
||||
<li><a href="$sbRoot/config/subtitles/" tabindex="$tab#set $tab += 1#"><i class="sgicon-subtitles"></i>Subtitles Settings</a></li>
|
||||
<li><a href="$sbRoot/config/postProcessing/" tabindex="$tab#set $tab += 1#"><i class="sgicon-postprocess"></i>Post Processing</a></li>
|
||||
<li><a href="$sbRoot/config/notifications/" tabindex="$tab#set $tab += 1#"><i class="sgicon-notification"></i>Notifications</a></li>
|
||||
|
@ -241,19 +240,20 @@
|
|||
#set $inner_first = True
|
||||
#for $cur_link in $menuItem.path
|
||||
#if $inner_first then '' else '· '
|
||||
#slurp
|
||||
##
|
||||
<a class="inner" href="$sbRoot/$menuItem.path[$cur_link]">$cur_link</a>
|
||||
#set $inner_first = False
|
||||
#end for
|
||||
#else
|
||||
#slurp
|
||||
##
|
||||
<a href="$sbRoot/$menuItem.path"#if 'confirm' in $menuItem then ' class="confirm"' else ''# tabindex="$tab#set $tab += 1#">$menuItem.title</a>
|
||||
#set $first = False
|
||||
#end if
|
||||
#end if
|
||||
#end for
|
||||
</span>
|
||||
</div>
|
||||
</div><!-- /SubMenu -->
|
||||
|
||||
#end if
|
||||
##
|
||||
#if $sickbeard.NEWEST_VERSION_STRING
|
||||
|
@ -264,12 +264,12 @@
|
|||
##
|
||||
#set $items = []
|
||||
#try
|
||||
$items.append($topmenu)
|
||||
#set void = $items.append($topmenu)
|
||||
#except (NameError, NotFound)
|
||||
#pass
|
||||
#end try
|
||||
#try
|
||||
$items.append($layout)
|
||||
#set void = $items.append($layout)
|
||||
#except (NameError, NotFound)
|
||||
#pass
|
||||
#end try
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
#import sickbeard
|
||||
#from sickbeard.common import *
|
||||
##
|
||||
#set global $title = 'Mass Update'
|
||||
#set global $header = 'Mass Update'
|
||||
|
||||
#set global $sbPath = '../..'
|
||||
|
||||
#set global $topmenu = 'manage'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
##
|
||||
#set $has_any_sports = False
|
||||
#set $has_any_anime = False
|
||||
#set $has_any_flat_folders = False
|
||||
|
@ -35,6 +35,7 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|||
},
|
||||
type: 'text'
|
||||
});
|
||||
|
||||
\$.tablesorter.addParser({
|
||||
id: 'quality',
|
||||
is: function(s) {
|
||||
|
@ -45,7 +46,7 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|||
},
|
||||
type: 'numeric'
|
||||
});
|
||||
|
||||
##
|
||||
#set $columns_total = 15 - ((1, 0)[$has_any_sports] + (1, 0)[$has_any_anime] + (1, 0)[$has_any_flat_folders] + (1, 0)[$sickbeard.USE_SUBTITLES])
|
||||
#set $column_headers = [('false', False), ("'showNames'", False), ("'quality'", False),
|
||||
((None, "'sports'")[$has_any_sports], True),
|
||||
|
@ -61,9 +62,9 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|||
#continue
|
||||
#end if
|
||||
#set $column += 1
|
||||
$headers.append('\t\t\t%s: { sorter: %s }' % ($column, $c))
|
||||
#set void = $headers.append('\t\t\t%s: { sorter: %s }' % ($column, $c))
|
||||
#if $img_extract
|
||||
$text_extract.append('\t\t\t%s%s' % ($column, ": function(node) {return $(node).find('img').attr('alt')}"))
|
||||
#set void = $text_extract.append('\t\t\t%s%s' % ($column, ": function(node) {return $(node).find('img').attr('alt')}"))
|
||||
#end if
|
||||
#end for
|
||||
|
||||
|
@ -137,39 +138,39 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|||
#set $yes = 'yes16.png" title="Yes" alt="Yes'
|
||||
#for $curShow in $myShowList
|
||||
#set $option_state = '<input type="checkbox" class="%sCheck" id="%s-{0:s}"%s>'.format(str($curShow.indexerid))
|
||||
#slurp
|
||||
##
|
||||
#set $curUpdate_disabled = $sickbeard.showQueueScheduler.action.isBeingUpdated($curShow)\
|
||||
or $sickbeard.showQueueScheduler.action.isInUpdateQueue($curShow)
|
||||
#set $reason = $disabled_inprogress_tip % 'Update'
|
||||
#set $curUpdate = '%s>%s' % (('', $reason)[$curUpdate_disabled],
|
||||
$option_state % ('update', 'update', ('', $disabled + $reason)[$curUpdate_disabled]))
|
||||
#slurp
|
||||
##
|
||||
#set $curRefresh_disabled = $sickbeard.showQueueScheduler.action.isBeingRefreshed($curShow)\
|
||||
or $sickbeard.showQueueScheduler.action.isInRefreshQueue($curShow)
|
||||
#set $reason = $disabled_inprogress_tip % 'Rescan'
|
||||
#set $curRefresh = '%s>%s' % (('', $reason)[$curRefresh_disabled],
|
||||
$option_state % ('refresh', 'refresh', ('', $disabled + $reason)[$curRefresh_disabled]))
|
||||
#slurp
|
||||
##
|
||||
#set $curRename_disabled = $sickbeard.showQueueScheduler.action.isBeingRenamed($curShow)\
|
||||
or $sickbeard.showQueueScheduler.action.isInRenameQueue($curShow)
|
||||
#set $reason = $disabled_inprogress_tip % 'Rename'
|
||||
#set $curRename = '%s>%s' % (('', $reason)[$curRename_disabled],
|
||||
$option_state % ('rename', 'rename', ('', $disabled + $reason)[$curRename_disabled]))
|
||||
#slurp
|
||||
##
|
||||
#set $subtitles_disabled = not $curShow.subtitles\
|
||||
or $sickbeard.showQueueScheduler.action.isBeingSubtitled($curShow)\
|
||||
or $sickbeard.showQueueScheduler.action.isInSubtitleQueue($curShow)
|
||||
#set $reason = ($disabled_inprogress_tip % 'Search subtitle', $disabled_subtitles_tip)[not $curShow.subtitles]
|
||||
#set $curSubtitle = '%s>%s' % (('', $reason)[$subtitles_disabled],
|
||||
$option_state % ('subtitle', 'subtitle', ('', $disabled + $reason)[$subtitles_disabled]))
|
||||
#slurp
|
||||
##
|
||||
#set $curDelete_disabled = $sickbeard.showQueueScheduler.action.isBeingRenamed($curShow)\
|
||||
or $sickbeard.showQueueScheduler.action.isInRenameQueue($curShow)\
|
||||
or $sickbeard.showQueueScheduler.action.isInRefreshQueue($curShow)
|
||||
#set $reason = $disabled_inprogress_tip % 'Rename or rescan'
|
||||
#set $curDelete = '%s>%s' % (('', $reason)[$curDelete_disabled],
|
||||
$option_state % ('delete', 'delete', ('', $disabled + $reason)[$curDelete_disabled]))
|
||||
#slurp
|
||||
##
|
||||
#set $curRemove_disabled = $sickbeard.showQueueScheduler.action.isBeingRenamed($curShow)\
|
||||
or $sickbeard.showQueueScheduler.action.isInRenameQueue($curShow)\
|
||||
or $sickbeard.showQueueScheduler.action.isInRefreshQueue($curShow)
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
#import datetime
|
||||
#from sickbeard.common import *
|
||||
#from sickbeard import sbdatetime, network_timezones
|
||||
##
|
||||
#set global $title = 'Backlog Overview'
|
||||
#set global $header = 'Backlog Overview'
|
||||
|
||||
#set global $sbPath = '..'
|
||||
|
||||
#set global $topmenu = 'manage'
|
||||
#set global $page_body_attr = 'backlog'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
@ -26,33 +27,31 @@
|
|||
#if $sickbeard.FUZZY_DATING:
|
||||
fuzzyMoment({
|
||||
containerClass: '.${fuzzydate}',
|
||||
dateHasTime : false,
|
||||
dateHasTime: !1,
|
||||
dateFormat: '${sickbeard.DATE_PRESET}',
|
||||
timeFormat: '${sickbeard.TIME_PRESET}',
|
||||
trimZero : #if $sickbeard.TRIM_ZERO then 'true' else 'false'#
|
||||
trimZero: #echo ('!1', '!0')[$sickbeard.TRIM_ZERO]#
|
||||
});
|
||||
#end if
|
||||
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<div id="content960">
|
||||
|
||||
##
|
||||
#if $varExists('header')
|
||||
<h1 class="header">$header</h1>
|
||||
#else
|
||||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
##
|
||||
#set $totalWanted = 0
|
||||
#set $totalQual = 0
|
||||
|
||||
#for $curShow in $sickbeard.showList:
|
||||
#for $curShow in $sickbeard.showList
|
||||
#set $totalWanted += $showCounts[$curShow.indexerid][$Overview.WANTED]
|
||||
#set $totalQual += $showCounts[$curShow.indexerid][$Overview.QUAL]
|
||||
#end for
|
||||
|
||||
##
|
||||
<div class="h2footer pull-right">
|
||||
<span class="listing-key wanted">Wanted: <b>$totalWanted</b></span>
|
||||
<span class="listing-key qual">Low Quality: <b>$totalQual</b></span>
|
||||
|
@ -70,16 +69,15 @@ Jump to Show
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<table class="sickbeardTable" cellspacing="0" border="0" cellpadding="0">
|
||||
|
||||
<table class="sickbeardTable" border="0">
|
||||
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
|
||||
|
||||
##
|
||||
#if 0 == $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED]:
|
||||
#continue
|
||||
#end if
|
||||
|
||||
<tr class="seasonheader" id="show-$curShow.indexerid">
|
||||
<td colspan="3" class="align-left">
|
||||
<td colspan="3" class="text-left">
|
||||
<br/>
|
||||
<h2><a href="$sbRoot/home/displayShow?show=$curShow.indexerid">$curShow.name</a></h2>
|
||||
<div class="pull-right">
|
||||
|
@ -94,8 +92,8 @@ Jump to Show
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="seasoncols"><th>Episode</th><th>Name</th><th class="nowrap">Airdate</th></tr>
|
||||
|
||||
<tr class="seasoncols"><th>Episode</th><th class="text-left">Name</th><th class="text-nowrap">Airdate</th></tr>
|
||||
##
|
||||
#for $curResult in $showSQLResults[$curShow.indexerid]:
|
||||
#set $whichStr = $str($curResult['season']) + 'x' + $str($curResult['episode'])
|
||||
#try:
|
||||
|
@ -103,17 +101,16 @@ Jump to Show
|
|||
#except Exception
|
||||
#continue
|
||||
#end try
|
||||
|
||||
##
|
||||
#if $overview not in ($Overview.QUAL, $Overview.WANTED):
|
||||
#continue
|
||||
#end if
|
||||
|
||||
<tr class="seasonstyle $Overview.overviewStrings[$showCats[$curShow.indexerid][$whichStr]]">
|
||||
<td class="tableleft" align="center">$whichStr</td>
|
||||
<td>$curResult["name"]</td>
|
||||
<td class="tableright" align="center" class="nowrap"><div class="${fuzzydate}">#if int($curResult['airdate']) == 1 then 'never' else $sbdatetime.sbdatetime.sbfdate($sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($curResult['airdate'],$curShow.airs,$curShow.network)))#</div></td>
|
||||
<td>$whichStr</td>
|
||||
<td class="text-left">$curResult["name"]</td>
|
||||
<td class="text-nowrap"><div class="${fuzzydate}">#if int($curResult['airdate']) == 1 then 'never' else $sbdatetime.sbdatetime.sbfdate($sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($curResult['airdate'],$curShow.airs,$curShow.network)))#</div></td>
|
||||
</tr>
|
||||
|
||||
#end for
|
||||
#end for
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#import sickbeard
|
||||
#import datetime
|
||||
#from sickbeard import common
|
||||
|
||||
##
|
||||
#set global $title = 'Episode Overview'
|
||||
#set global $header = 'Episode Overview'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'manage'
|
||||
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
@ -15,9 +15,9 @@
|
|||
#else
|
||||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
##
|
||||
#if not $whichStatus or ($whichStatus and not $ep_counts)
|
||||
|
||||
##
|
||||
#if $whichStatus:
|
||||
<h3>no episodes have status <span class="grey-text">$common.statusStrings[$int($whichStatus)].lower()</span></h3>
|
||||
#end if
|
||||
|
@ -34,9 +34,8 @@
|
|||
</select>
|
||||
<input class="btn btn-inline" type="submit" value="Manage">
|
||||
</form>
|
||||
|
||||
##
|
||||
#else
|
||||
|
||||
#if $whichStatus in ($common.ARCHIVED, $common.IGNORED, $common.SNATCHED):
|
||||
#set $row_class = 'good'
|
||||
#else
|
||||
|
@ -109,5 +108,4 @@
|
|||
</form>
|
||||
|
||||
#end if
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,23 +1,24 @@
|
|||
#import sickbeard
|
||||
#import os.path
|
||||
#import datetime
|
||||
#import re
|
||||
#from sickbeard import providers
|
||||
#from sickbeard.providers import generic
|
||||
#from sickbeard.common import *
|
||||
#set global $header="Failed Downloads"
|
||||
#set global $title="Failed Downloads"
|
||||
|
||||
#set global $sbPath=".."
|
||||
|
||||
#set global $topmenu="manage"#
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
##
|
||||
#set global $header = 'Failed Downloads'
|
||||
#set global $title = 'Failed Downloads'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'manage'
|
||||
#set global $page_body_attr = 'failed'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
\$(document).ready(function()
|
||||
{
|
||||
\$("#failedTable:has(tbody tr)").tablesorter({
|
||||
\$('#failedTable:has(tbody tr)').tablesorter({
|
||||
widgets: ['zebra'],
|
||||
sortList: [[0,0]],
|
||||
headers: { 3: { sorter: false } }
|
||||
|
@ -36,56 +37,51 @@
|
|||
#else
|
||||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
#set selected = ' selected="selected"'
|
||||
<div class="h2footer pull-right"><b>Limit:</b>
|
||||
<select name="limit" id="limit" class="form-control form-control-inline input-sm">
|
||||
<option value="0" #if $limit == "0" then "selected=\"selected\"" else ""#>All</option>
|
||||
<option value="100" #if $limit == "100" then "selected=\"selected\"" else ""#>100</option>
|
||||
<option value="250" #if $limit == "250" then "selected=\"selected\"" else ""#>250</option>
|
||||
<option value="500" #if $limit == "500" then "selected=\"selected\"" else ""#>500</option>
|
||||
<select id="limit" name="limit" class="form-control form-control-inline input-sm">
|
||||
<option value="0"#if '0' == $limit then $selected else ''#>All</option>
|
||||
<option value="100"#if '100' == $limit then $selected else ''#>100</option>
|
||||
<option value="250"#if '250' == $limit then $selected else ''#>250</option>
|
||||
<option value="500"#if '500' == $limit then $selected else ''#>500</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<table id="failedTable" class="sickbeardTable tablesorter" cellspacing="1" border="0" cellpadding="0">
|
||||
<table id="failedTable" class="sickbeardTable tablesorter" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="nowrap" width="75%" style="text-align: left;">Release</th>
|
||||
<th width="10%">Size</th>
|
||||
<th width="14%">Provider</th>
|
||||
<th width="1%">Remove<br />
|
||||
<input type="checkbox" class="bulkCheck" id="removeCheck" />
|
||||
<th class="text-nowrap text-left" style="width:75%">Release</th>
|
||||
<th style="width:10%">Size</th>
|
||||
<th style="width:14%">Provider</th>
|
||||
<th style="width:1%">Remove<br />
|
||||
<input id="removeCheck" type="checkbox" class="bulkCheck">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td rowspan="1" colspan="4"><input type="button" class="btn pull-right" value="Submit" id="submitMassRemove"></td>
|
||||
<td rowspan="1" colspan="4">
|
||||
<input id="submitMassRemove" type="button" class="btn pull-right" value="Submit">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<tbody>
|
||||
#for $hItem in $failedResults:
|
||||
#set $curRemove = "<input type=\"checkbox\" class=\"removeCheck\" id=\"remove-"+$hItem["release"]+"\" />"
|
||||
#for $hItem in $failedResults
|
||||
<tr>
|
||||
<td class="nowrap">$hItem["release"]</td>
|
||||
<td align="center">
|
||||
#if $hItem["size"] != -1
|
||||
$hItem["size"]
|
||||
<td class="text-nowrap text-left">#echo re.sub('"', '', $hItem['release'])#</td>
|
||||
<td>#echo ($hItem['size'], '?')[-1 == $hItem['size']]#</td>
|
||||
#set $provider = $providers.getProviderClass($generic.GenericProvider.makeID($hItem['provider']))
|
||||
#if None is not $provider:
|
||||
<td><img src="$sbRoot/images/providers/<%= provider.imageName() %>" width="16" height="16" alt="$provider.name" title="$provider.name" /></td>
|
||||
#else
|
||||
?
|
||||
<td><img src="$sbRoot/images/providers/missing.png" width="16" height="16" alt="missing provider" title="missing provider" /></td>
|
||||
#end if
|
||||
</td>
|
||||
<td align="center">
|
||||
#set $provider = $providers.getProviderClass($generic.GenericProvider.makeID($hItem["provider"]))
|
||||
#if $provider != None:
|
||||
<img src="$sbRoot/images/providers/<%=provider.imageName()%>" width="16" height="16" alt="$provider.name" title="$provider.name"/>
|
||||
#else:
|
||||
<img src="$sbRoot/images/providers/missing.png" width="16" height="16" alt="missing provider" title="missing provider"/>
|
||||
#end if
|
||||
</td>
|
||||
<td align="center">$curRemove</td>
|
||||
<td><input type="checkbox" class="removeCheck" id="remove-#echo re.sub('"', '___', $hItem['release'])#" /></td>
|
||||
</tr>
|
||||
#end for
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,13 +1,14 @@
|
|||
#import sickbeard
|
||||
#import datetime
|
||||
#from sickbeard.common import *
|
||||
#set global $title="Manage Searches"
|
||||
#set global $header="Manage Searches"
|
||||
#set global $sbPath=".."
|
||||
|
||||
#set global $topmenu="manage"#
|
||||
##
|
||||
#set global $title = 'Manage Searches'
|
||||
#set global $header = 'Manage Searches'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'manage'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/plotTooltip.js?$sbPID"></script>
|
||||
<div id="content800">
|
||||
|
@ -20,29 +21,29 @@
|
|||
<div id="summary2" class="align-left">
|
||||
<h3>Backlog Search:</h3>
|
||||
<a class="btn" href="$sbRoot/manage/manageSearches/forceBacklog"><i class="sgicon-play"></i> Force</a>
|
||||
<a class="btn" href="$sbRoot/manage/manageSearches/pauseBacklog?paused=#if $backlogPaused then "0" else "1"#"><i class="#if $backlogPaused then "sgicon-play" else "sgicon-pause"#"></i> #if $backlogPaused then "Unpause" else "Pause"#</a>
|
||||
<a class="btn" href="$sbRoot/manage/manageSearches/pauseBacklog?paused=#if $backlogPaused then '0' else '1'#"><i class="#if $backlogPaused then 'sgicon-play' else 'sgicon-pause'#"></i> #if $backlogPaused then 'Unpause' else 'Pause'#</a>
|
||||
#if not $backlogRunning:
|
||||
Not in progress<br />
|
||||
#else:
|
||||
#if $backlogPaused then "Paused: " else ""#
|
||||
#else
|
||||
#if $backlogPaused then 'Paused: ' else ''#
|
||||
Currently running<br />
|
||||
#end if
|
||||
<br />
|
||||
|
||||
<h3>Recent Search:</h3>
|
||||
<a class="btn" href="$sbRoot/manage/manageSearches/forceSearch"><i class="sgicon-play"></i> Force</a>
|
||||
#if not $recentSearchStatus:
|
||||
#if not $recentSearchStatus
|
||||
Not in progress<br />
|
||||
#else:
|
||||
#else
|
||||
In Progress<br />
|
||||
#end if
|
||||
<br />
|
||||
|
||||
<h3>Find Propers Search:</h3>
|
||||
<a class="btn" href="$sbRoot/manage/manageSearches/forceFindPropers"><i class="sgicon-play"></i> Force</a>
|
||||
#if not $findPropersStatus:
|
||||
#if not $findPropersStatus
|
||||
Not in progress<br />
|
||||
#else:
|
||||
#else
|
||||
In Progress<br />
|
||||
#end if
|
||||
<br />
|
||||
|
@ -52,10 +53,11 @@ In Progress<br />
|
|||
<br /><br />
|
||||
|
||||
<h3>Search Queue:</h3>
|
||||
Backlog: <i>$queueLength['backlog'] pending items</i></br>
|
||||
Recent: <i>$queueLength['recent'] pending items</i></br>
|
||||
Manual: <i>$queueLength['manual'] pending items</i></br>
|
||||
Failed: <i>$queueLength['failed'] pending items</i></br>
|
||||
Backlog: <i>$queueLength['backlog'] pending items</i><br />
|
||||
Recent: <i>$queueLength['recent'] pending items</i><br />
|
||||
Manual: <i>$queueLength['manual'] pending items</i><br />
|
||||
Failed: <i>$queueLength['failed'] pending items</i><br />
|
||||
</div>
|
||||
</div>
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,14 +1,15 @@
|
|||
#import sickbeard
|
||||
#from sickbeard import common
|
||||
#from sickbeard import exceptions
|
||||
##
|
||||
#set global $title = 'Mass Edit'
|
||||
#set global $header = 'Mass Edit'
|
||||
|
||||
#set global $sbPath = '..'
|
||||
|
||||
#set global $topmenu = 'manage'#
|
||||
#set global $topmenu = 'manage'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
#if None is not $quality_value:
|
||||
#set $initial_quality = int($quality_value)
|
||||
#else:
|
||||
|
|
|
@ -1,46 +1,48 @@
|
|||
#import sickbeard
|
||||
#from lib import subliminal
|
||||
#import datetime
|
||||
#from lib import subliminal
|
||||
#from sickbeard import common
|
||||
#set global $title="Episode Overview"
|
||||
#set global $header="Episode Overview"
|
||||
|
||||
#set global $sbPath=".."
|
||||
|
||||
#set global $topmenu="manage"#
|
||||
##
|
||||
#set global $title = 'Episode Overview'
|
||||
#set global $header = 'Episode Overview'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'manage'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<div id="content960">
|
||||
#if $varExists('header')
|
||||
<h1 class="header">$header</h1>
|
||||
#else
|
||||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
#if $whichSubs:
|
||||
##
|
||||
#if $whichSubs
|
||||
#set subsLanguage = $subliminal.language.Language($whichSubs) if not $whichSubs == 'all' else 'All'
|
||||
#end if
|
||||
#if not $whichSubs or ($whichSubs and not $ep_counts):
|
||||
|
||||
#if not $whichSubs or ($whichSubs and not $ep_counts)
|
||||
#if $whichSubs:
|
||||
|
||||
<h2>All of your episodes have $subsLanguage subtitles.</h2>
|
||||
<br />
|
||||
#end if
|
||||
|
||||
<form action="$sbRoot/manage/subtitleMissed" method="get">
|
||||
Manage episodes without <select name="whichSubs" class="form-control form-control-inline input-sm">
|
||||
Manage episodes without
|
||||
<select name="whichSubs" class="form-control form-control-inline input-sm">
|
||||
<option value="all">All</option>
|
||||
#for $sub_lang in $subliminal.language.language_list($sickbeard.SUBTITLES_LANGUAGES):
|
||||
<option value="$sub_lang.alpha2">$sub_lang</option>
|
||||
#end for
|
||||
</select>
|
||||
subtitles
|
||||
<input class="btn" type="submit" value="Manage" />
|
||||
<input class="btn" type="submit" value="Manage">
|
||||
</form>
|
||||
|
||||
#else
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/manageSubtitleMissed.js?$sbPID"></script>
|
||||
<input type="hidden" id="selectSubLang" name="selectSubLang" value="$whichSubs" />
|
||||
<input type="hidden" id="selectSubLang" name="selectSubLang" value="$whichSubs">
|
||||
|
||||
<form action="$sbRoot/manage/downloadSubtitleMissed" method="post">
|
||||
<h2>Episodes without $subsLanguage subtitles.</h2>
|
||||
|
@ -54,13 +56,12 @@ Download missed subtitles for selected episodes <input class="btn btn-inline" ty
|
|||
<table class="sickbeardTable manageTable" cellspacing="1" border="0" cellpadding="0">
|
||||
#for $cur_indexer_id in $sorted_show_ids:
|
||||
<tr id="$cur_indexer_id">
|
||||
<th><input type="checkbox" class="allCheck" id="allCheck-$cur_indexer_id" name="$cur_indexer_id-all" checked="checked" /></th>
|
||||
<th colspan="3" style="width: 100%; text-align: left;"><a class="whitelink" href="$sbRoot/home/displayShow?show=$cur_indexer_id">$show_names[$cur_indexer_id]</a> ($ep_counts[$cur_indexer_id]) <input type="button" class="get_more_eps btn" id="$cur_indexer_id" value="Expand" /></th>
|
||||
<th><input type="checkbox" class="allCheck" id="allCheck-$cur_indexer_id" name="$cur_indexer_id-all" checked="checked"></th>
|
||||
<th colspan="3" style="width: 100%; text-align: left;"><a class="whitelink" href="$sbRoot/home/displayShow?show=$cur_indexer_id">$show_names[$cur_indexer_id]</a> ($ep_counts[$cur_indexer_id]) <input type="button" class="get_more_eps btn" id="$cur_indexer_id" value="Expand"></th>
|
||||
</tr>
|
||||
#end for
|
||||
</table>
|
||||
</form>
|
||||
|
||||
#end if
|
||||
</div>
|
||||
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -1,13 +1,14 @@
|
|||
#import sickbeard
|
||||
#import datetime
|
||||
#from sickbeard.common import *
|
||||
#set global $title="Manage Torrents"
|
||||
#set global $header="Manage Torrents"
|
||||
#set global $sbPath=".."
|
||||
|
||||
#set global $topmenu="manage"#
|
||||
##
|
||||
#set global $title = 'Manage Torrents'
|
||||
#set global $header = 'Manage Torrents'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'manage'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
<script type="text/javascript" src="$sbRoot/js/plotTooltip.js?$sbPID"></script>
|
||||
#if $varExists('header')
|
||||
|
@ -19,4 +20,4 @@
|
|||
$info_download_station
|
||||
<iframe id="extFrame" src="$webui_url" width="100%" height="500" frameBorder="0" style="border: 1px black solid;"></iframe>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -2,16 +2,15 @@
|
|||
#import datetime
|
||||
#from sickbeard.common import *
|
||||
#from sickbeard import db
|
||||
|
||||
#set global $title="Home"
|
||||
#set global $header="Restarting SickGear"
|
||||
|
||||
#set global $sbPath = ".."
|
||||
|
||||
#set global $topmenu="home"#
|
||||
##
|
||||
#set global $title = 'Home'
|
||||
#set global $header = 'Restarting SickGear'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'home'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/restart_bare.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/restart_bare.tmpl')
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
#import sickbeard
|
||||
#from sickbeard import common
|
||||
#from sickbeard import exceptions
|
||||
##
|
||||
#set global $title = 'Test Rename ' + $show.name
|
||||
#set global $header = '<a href="' + $sbRoot + '/home/displayShow?show=%d">%s</a>' % ($show.indexerid, $show.name)
|
||||
#set global $sbPath = '..'
|
||||
|
||||
#set global $topmenu = 'home'
|
||||
#set global $page_body_attr = 'rename'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
|
@ -30,9 +32,9 @@
|
|||
#end if
|
||||
</blockquote>
|
||||
|
||||
##
|
||||
#set $curSeason = -1
|
||||
#set $odd = False
|
||||
|
||||
<div class="clearfix padbottom">
|
||||
<button class="btn seriesCheck">Select All Episodes</button>
|
||||
<button class="btn clearAll">Clear All</button>
|
||||
|
@ -40,9 +42,9 @@
|
|||
|
||||
<input type="submit" value="Rename Selected" class="btn btn-success"> <a href="/home/displayShow?show=$show.indexerid" class="btn btn-danger">Cancel Rename</a>
|
||||
|
||||
<table id="testRenameTable" class="sickbeardTable" cellspacing="1" border="0" cellpadding="0">
|
||||
|
||||
#for $cur_ep_obj in $ep_obj_list:
|
||||
<table id="testRenameTable" class="sickbeardTable" border="0">
|
||||
##
|
||||
#for $cur_ep_obj in $ep_obj_list
|
||||
#set $curLoc = $cur_ep_obj.location[len($cur_ep_obj.show.location)+1:]
|
||||
#set $curExt = $curLoc.split('.')[-1]
|
||||
#set $newLoc = $cur_ep_obj.proper_path() + '.' + $curExt
|
||||
|
@ -50,45 +52,47 @@
|
|||
#if int($cur_ep_obj.season) != $curSeason:
|
||||
<thead>
|
||||
<tr class="seasonheader" id="season-$cur_ep_obj.season">
|
||||
<td colspan="4">
|
||||
<h2>#if int($cur_ep_obj.season) == 0 then "Specials" else "Season "+str($cur_ep_obj.season)#</h2>
|
||||
<td colspan="4" class="text-left">
|
||||
<h2>#if 0 == int($cur_ep_obj.season) then 'Specials' else 'Season %s' % $cur_ep_obj.season#</h2>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="seasoncols" id="season-$cur_ep_obj.season-cols">
|
||||
<th class="col-checkbox"><input type="checkbox" class="seasonCheck" id="$cur_ep_obj.season" /></th>
|
||||
<th class="nowrap">Episode</th>
|
||||
<th class="text-nowrap">Episode</th>
|
||||
<th class="col-name">Old Location</th>
|
||||
<th class="col-name">New Location</th>
|
||||
</tr>
|
||||
</thead>
|
||||
#set $curSeason = int($cur_ep_obj.season)
|
||||
|
||||
#end if
|
||||
<tbody>
|
||||
##
|
||||
#set $odd = not $odd
|
||||
#set $epStr = str($cur_ep_obj.season) + "x" + str($cur_ep_obj.episode)
|
||||
#set $epStr = str($cur_ep_obj.season) + 'x' + str($cur_ep_obj.episode)
|
||||
#set $epList = sorted([cur_ep_obj.episode] + [x.episode for x in cur_ep_obj.relatedEps])
|
||||
#if len($epList) > 1:
|
||||
#if 1 < len($epList)
|
||||
#set $epList = [$min($epList), $max($epList)]
|
||||
#end if
|
||||
<tr class="season-$curSeason
|
||||
#if $curLoc == $newLoc:
|
||||
good
|
||||
#else
|
||||
wanted
|
||||
#end if
|
||||
seasonstyle">
|
||||
<tbody>
|
||||
<tr class="season-$curSeason #if $curLoc == $newLoc#good#else#wanted#end if# seasonstyle">
|
||||
#if $curLoc != $newLoc
|
||||
<td class="col-checkbox">
|
||||
#if $curLoc != $newLoc:
|
||||
<input type="checkbox" class="epCheck" id="<%=str(cur_ep_obj.season) + 'x' + str(cur_ep_obj.episode)%>" name="<%=str(cur_ep_obj.season) + "x" + str(cur_ep_obj.episode) %>" />
|
||||
#end if
|
||||
<input type="checkbox" class="epCheck" id="<%=str(cur_ep_obj.season) + 'x' + str(cur_ep_obj.episode)%>" name="<%=str(cur_ep_obj.season) + 'x' + str(cur_ep_obj.episode) %>">
|
||||
</td>
|
||||
<td align="center" valign="top" class="nowrap"><%= "-".join(map(str, epList)) %></td>
|
||||
<td width="50%" class="col-name">$curLoc</td>
|
||||
<td width="50%" class="col-name">$newLoc</td>
|
||||
#else
|
||||
<td></td>
|
||||
#end if
|
||||
<td class="col-ep text-nowrap"><%= '-'.join(map(str, epList)) %></td>
|
||||
<td class="col-name text-left">$curLoc</td>
|
||||
<td class="col-name text-left">$newLoc</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
#end for
|
||||
</table><br />
|
||||
|
||||
</table>
|
||||
|
||||
<div style="clear:both;margin-top:20px">
|
||||
<input type="submit" value="Rename Selected" class="btn btn-success"> <a href="/home/displayShow?show=$show.indexerid" class="btn btn-danger">Cancel Rename</a>
|
||||
</div>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -2,25 +2,14 @@
|
|||
#from sickbeard import classes
|
||||
#from sickbeard.common import *
|
||||
#from sickbeard.logger import reverseNames
|
||||
#set global $header="Log File"
|
||||
#set global $title="Logs"
|
||||
|
||||
#set global $sbPath = ".."
|
||||
|
||||
#set global $topmenu="errorlogs"#
|
||||
##
|
||||
#set global $header = 'Log File'
|
||||
#set global $title = 'Logs'
|
||||
#set global $sbPath = '..'
|
||||
#set global $topmenu = 'errorlogs'
|
||||
##
|
||||
#import os.path
|
||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
<!--
|
||||
\$(document).ready(function(){
|
||||
\$('#minLevel').change(function(){
|
||||
url = '$sbRoot/errorlogs/viewlog/?minLevel='+\$(this).val()
|
||||
window.location.href = url
|
||||
});
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
||||
|
||||
#if $varExists('header')
|
||||
<h1 class="header">$header</h1>
|
||||
|
@ -28,30 +17,30 @@
|
|||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
<div class="h2footer pull-right">Minimum logging level to display: <select name="minLevel" id="minLevel" class="form-control form-control-inline input-sm">
|
||||
<div class="h2footer pull-right">Minimum logging level to display:
|
||||
<select name="minLevel" id="minLevel" class="form-control form-control-inline input-sm">
|
||||
#set $levels = $reverseNames.keys()
|
||||
$levels.sort(lambda x,y: cmp($reverseNames[$x], $reverseNames[$y]))
|
||||
#for $level in $levels:
|
||||
<option value="$reverseNames[$level]" #if $minLevel == $reverseNames[$level] then "selected=\"selected\"" else ""#>$level.title()</option>
|
||||
#set void = $levels.sort(lambda x,y: cmp($reverseNames[$x], $reverseNames[$y]))
|
||||
#for $level in $levels
|
||||
<option value="$reverseNames[$level]" #if $minLevel == $reverseNames[$level] then 'selected="selected"' else ''#>$level.title()</option>
|
||||
#end for
|
||||
</select>
|
||||
</div>
|
||||
<br />
|
||||
<div class="align-left"><pre>
|
||||
$logLines
|
||||
</pre>
|
||||
</div>
|
||||
<br />
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
<!--
|
||||
window.setInterval( "location.reload(true)", 600000); // Refresh every 10 minutes
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<div class="align-left" style="margin:30px 0"><pre>
|
||||
#echo $logLines
|
||||
</pre></div>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
<!--
|
||||
window.setInterval( "location.reload(true)", 600000); // Refresh every 10 minutes
|
||||
\$(document).ready(function(){
|
||||
\$('#minLevel').change(function(){
|
||||
window.location.href = '$sbRoot/errorlogs/viewlog/?minLevel=' + \$(this).val()
|
||||
});
|
||||
|
||||
window.setInterval('location.reload(true)', 600000); // Refresh every 10 minutes
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
|
||||
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|
||||
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|
|
@ -3237,7 +3237,8 @@ class Manage(MainHandler):
|
|||
toRemove = toRemove.split('|') if toRemove is not None else []
|
||||
|
||||
for release in toRemove:
|
||||
myDB.action('DELETE FROM failed WHERE release = ?', [release])
|
||||
item = re.sub('_{3,}', '%', release)
|
||||
myDB.action('DELETE FROM failed WHERE release like ?', [item])
|
||||
|
||||
if toRemove:
|
||||
return self.redirect('/manage/failedDownloads/')
|
||||
|
|
Loading…
Reference in a new issue