Permalink
Browse files

Merge branch 'master' of github.com:midgetspy/Sick-Beard into windows…

…_binaries
  • Loading branch information...
2 parents f349e53 + b421395 commit ec214fcf1504c5c5d835719702e33f4817cc656b @midgetspy committed Mar 19, 2011
Showing with 1,031 additions and 771 deletions.
  1. +5 −0 SickBeard.py
  2. +1 −1 data/css/browser.css
  3. +5 −22 data/css/comingEpisodes.css
  4. +45 −88 data/css/default.css
  5. +2 −1 data/css/tablesorter.css
  6. BIN data/images/bg.gif
  7. BIN data/images/paypal/btn_donateCC_LG.gif
  8. BIN data/images/paypal/btn_donate_LG.gif
  9. +33 −31 data/interfaces/default/comingEpisodes.tmpl
  10. +5 −5 data/interfaces/default/config.tmpl
  11. +9 −5 data/interfaces/default/config_episodedownloads.tmpl
  12. +19 −17 data/interfaces/default/config_general.tmpl
  13. +18 −18 data/interfaces/default/config_notifications.tmpl
  14. +9 −7 data/interfaces/default/config_providers.tmpl
  15. +20 −21 data/interfaces/default/displayShow.tmpl
  16. +13 −9 data/interfaces/default/editShow.tmpl
  17. +3 −1 data/interfaces/default/errorlogs.tmpl
  18. +1 −1 data/interfaces/default/genericMessage.tmpl
  19. +5 −3 data/interfaces/default/history.tmpl
  20. +19 −13 data/interfaces/default/home.tmpl
  21. +10 −8 data/interfaces/default/home_addExistingShow.tmpl
  22. +20 −19 data/interfaces/default/home_addShows.tmpl
  23. +10 −12 data/interfaces/default/home_newShow.tmpl
  24. +3 −2 data/interfaces/default/home_postprocess.tmpl
  25. +4 −4 data/interfaces/default/inc_addShowOptions.tmpl
  26. +2 −1 data/interfaces/default/inc_bottom.tmpl
  27. +1 −1 data/interfaces/default/inc_qualityChooser.tmpl
  28. +2 −2 data/interfaces/default/inc_rootDirs.tmpl
  29. +15 −38 data/interfaces/default/inc_top.tmpl
  30. +58 −42 data/interfaces/default/manage.tmpl
  31. +11 −8 data/interfaces/default/manage_backlogOverview.tmpl
  32. +0 −138 data/interfaces/default/manage_episodeOverview.tmpl
  33. +72 −0 data/interfaces/default/manage_episodeStatuses.tmpl
  34. +1 −1 data/interfaces/default/manage_manageSearches.tmpl
  35. +21 −23 data/interfaces/default/manage_massEdit.tmpl
  36. +6 −2 data/interfaces/default/viewlogs.tmpl
  37. +0 −1 data/js/jquery.divgrow-1.3.1.min.js
  38. +182 −0 data/js/jquery.expand-1.3.8.js
  39. +47 −0 data/js/manageEpisodeStatuses.js
  40. +10 −2 data/js/massUpdate.js
  41. +2 −0 data/js/newShow.js
  42. +13 −0 data/js/tableClick.js
  43. +20 −11 sickbeard/__init__.py
  44. +13 −9 sickbeard/common.py
  45. +1 −1 sickbeard/encodingKludge.py
  46. +29 −0 sickbeard/helpers.py
  47. +6 −0 sickbeard/metadata/generic.py
  48. +83 −74 sickbeard/postProcessor.py
  49. +0 −1 sickbeard/providers/__init__.py
  50. +0 −73 sickbeard/providers/binreq.py
  51. +3 −3 sickbeard/providers/ezrss.py
  52. +4 −2 sickbeard/providers/generic.py
  53. +1 −1 sickbeard/providers/newzbin.py
  54. +1 −1 sickbeard/providers/newznab.py
  55. +7 −2 sickbeard/providers/nzbmatrix.py
  56. +1 −1 sickbeard/providers/nzbs_org.py
  57. +1 −1 sickbeard/sceneHelpers.py
  58. +1 −1 sickbeard/show_queue.py
  59. +1 −1 sickbeard/tv.py
  60. +157 −42 sickbeard/webserve.py
View
5 SickBeard.py
@@ -231,6 +231,11 @@ def main():
# stay alive while my threads do the work
while (True):
+ if sickbeard.invoked_command:
+ logger.log(u"Executing invoked command: "+repr(sickbeard.invoked_command))
+ sickbeard.invoked_command()
+ sickbeard.invoked_command = None
+
time.sleep(1)
return
View
2 data/css/browser.css
@@ -1,5 +1,5 @@
#fileBrowserDialog {
- max-height: 480;
+ max-height: 480px;
overflow-y: auto;
}
#fileBrowserDialog ul {
View
27 data/css/comingEpisodes.css
@@ -1,23 +1,4 @@
-div#outsideWrapper {
- margin: 0px auto;
- text-align: center;
-}
-
-div#insideWrapper {
- margin: 0px auto;
- border: 1px solid #E9E9E9;
- background-color: #F8F8F8;
- padding: 0px 35px 0px 35px;
- width: 629px;
-}
-
-div#insideContent {
- text-align: center;
- width: 629px;
-}
-
.tvshowDiv {
- width: 606px;
display: block;
clear: both;
border-left: 1px solid #CCCCCC;
@@ -26,6 +7,7 @@ div#insideContent {
margin: auto;
padding: 0px;
text-align: left;
+ width: 606px;
}
.tvshowDiv a, .tvshowDiv a:link, .tvshowDiv a:visited, .tvshowDiv a:hover {
@@ -54,15 +36,15 @@ div#insideContent {
}
.posterThumb {
- /* display:table-cell; */
+ -ms-interpolation-mode: bicubic; /* make scaling look nicer for ie */
vertical-align: top;
height: 200px;
width: 136px;
border-top: 1px solid #ccc;
border-right: 1px solid #ccc;
}
.bannerThumb {
- /* display:table-cell; */
+ -ms-interpolation-mode: bicubic; /* make scaling look nicer for ie */
vertical-align: top;
height: 112px;
width: 606px;
@@ -79,6 +61,7 @@ div#insideContent {
.tvshowDiv th.nobg {
background: #efefef;
border-top: 1px solid #666;
+ text-align: center;
}
.tvshowDiv td {
@@ -118,7 +101,7 @@ h1.network {
border: 1px solid #CCCCCC;
margin-bottom: 10px;
/* margin: 10px; */
- overflow: hidden;
+ /* overflow: hidden; */
padding: 10px;
}
View
133 data/css/default.css
@@ -36,31 +36,20 @@ display:inline;
/* these are for incl_top.tmpl */
#header {
-padding-top:3px;
+padding: 5px 0;
z-index:2;
}
#header a:hover {
background:none;
}
-#tagline {
-display:block;
-position:relative;
-padding-right:10px;
-top:1px;
-float:right;
-text-align:right;
-font-size:10px;
-font-weight:400;
-}
-
#logo {
font-size:33px;
font-family:Arial, Helvetica, sans-serif;
font-weight:700;
text-transform:uppercase;
-padding-left:20px;
+padding: 0px 5px 0px 15px;
}
#versiontext {
@@ -76,24 +65,6 @@ table {
margin:0;
}
-tr.active {
-font-weight:700;
-}
-
-tr.finished {
-font-weight:400;
-}
-
-tr.waiting {
-font-style:italic;
-}
-
-td.pre {
-font-size:13px;
-font-family:'courier new',courier,serif;
-font-weight:700;
-}
-
h1 {
text-align:left;
font-size:19px;
@@ -138,47 +109,39 @@ border-bottom: 1px dotted #D7D7D7;
}
/* --------------- alignment ------------------- */
-.float-left {
-float:left;
-}
-
-.float-right {
-float:right;
-}
-
-.align-left {
-text-align:left;
-}
-
-.align-right {
-text-align:right;
-}
+.float-left { float:left; }
+.float-right { float:right; }
+.align-left { text-align:left; }
+.align-right { text-align:right; }
+.nowrap { white-space: nowrap; }
/* --------------------------------------------- */
.footer {
+clear:both;
+width: 100%;
text-align:center;
-padding-bottom:5px;
-margin-top:20px;
+padding-top: 5px;
+padding-bottom: 5px;
background-color:#F5F1E4;
-border-top:1px solid #000;
+border-top:1px solid #b3b3b3;
color:#4e4e4e;
line-height: 1.4em;
}
.sickbeardTable {
-width:90%;
+width:100%;
margin-left:auto;
margin-right:auto;
}
.sickbeardTable th{
-padding:2px;
+padding:3px;
font-weight:700;
background-color:#333;
color:#FFF;
text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
}
.sickbeardTable td{
-padding:5px;
+padding:4px;
}
.sickbeardTable tfoot a {
color:#FFF;
@@ -191,25 +154,9 @@ clear:left;
.plotInfo {
cursor:help;
-padding-left:5px;
-float:right;
-}
-
-.message {
-margin-bottom:20px;
-text-align:left;
-font-size:larger;
-padding:4px 0 4px 1em;
-}
-
-.message p span {
-float:left;
-margin-right:.5em;
-}
-
-.message a:hover {
-color:blue;
-background:none;
+margin-left: 8px;
+position: relative;
+float: right;
}
#tooltip {
@@ -222,6 +169,7 @@ margin-right:10px;
}
.progressbarText {
+text-shadow: 0 0 0.1em #fff;
position:absolute;
top:0;
width:100%;
@@ -286,10 +234,6 @@ background-color:#000;
color:#FFF;
}
-.message p,.message ul {
-margin:0;
-}
-
div#summary {
background-color:#efefef;
padding:10px;
@@ -303,14 +247,14 @@ line-height: 17px;
#MainMenu {
background-color:#57442B;
color:#F5F5F5;
-/*margin-bottom:1em;*/
width:100%;
-border-bottom: 1px solid #333;
}
#SubMenu {
+clear:both;
background-color:#F5F1E4;
color:#333;
-border-bottom: 1px solid #333;
+border-top: 1px solid #333;
+border-bottom: 1px solid #b3b3b3;
padding-left:5px;
}
#SubMenu span {
@@ -342,11 +286,17 @@ border:0;
padding:4px 15px 0px;
}
#content {
-padding: 10px 15px 15px;
-_text-align: center;
-min-width:500px;
-z-index:1;
-clear:both;
+ min-height: 100px;
+ background: #fff;
+ margin-left: auto;
+ margin-right: auto;
+ border-left: thin solid #B3B3B3;
+ border-right: thin solid #B3B3B3;
+ width: 88%;
+ min-width:650px;
+ z-index:1;
+ clear:both;
+ padding: 10px 15px 15px;
}
.showLegend{
font-weight:700;
@@ -378,14 +328,21 @@ overflow: hidden;
div#addShowPortal {
margin-left: auto;
margin-right: auto;
-width: 600px;
+width: 480px;
}
-div#addShowPortal button { padding: 10px; width: 450px; }
-div#addShowPortal button div.button img{ float: left; margin: 25px 25px 25px 10px; vertical-align: middle;}
-div#addShowPortal button .buttontext { float: right; text-align: left; width: 350px; }
+div#addShowPortal button { padding: 10px; width: 100%; }
+div#addShowPortal button div.button img{ position: absolute; display: block; overflow: hidden; top: 35%; padding-left: 0.4em; text-align: center;}
+div#addShowPortal button .buttontext { position: relative; display: block; padding: 0.1em 0.4em 0.1em 4.4em; text-align: left; }
#rootDirs, #rootDirsControls { width: 50%; min-width: 400px; }
.hover { background-color: #cfcfcf !important; cursor: pointer; }
+.navShow { display: inline; cursor: pointer; vertical-align: top; }
+
+/* for manage_massEdit */
+.optionWrapper { width: 450px; margin-left: auto; margin-right: auto; padding: 6px 12px; }
+.optionWrapper span.selectTitle { float: left; font-weight: 700; font-size: 1.2em; text-align: left; width: 225px; }
+.optionWrapper div.selectChoices { float: left; width: 175px; margin-left: 25px; }
+.optionWrapper br { clear: both; }
-.navShow { display: inline; cursor: pointer; vertical-align: top; }
+a.whitelink { color: white; }
View
3 data/css/tablesorter.css
@@ -8,7 +8,8 @@ table.tablesorter thead tr .header {
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
border: 1px solid #241109;
- padding: 2px;
+ padding: 3px;
+ font-weight:700;
}
/*
table.tablesorter thead tr .headerSortUp {
View
BIN data/images/bg.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN data/images/paypal/btn_donateCC_LG.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN data/images/paypal/btn_donate_LG.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
64 data/interfaces/default/comingEpisodes.tmpl
@@ -5,7 +5,7 @@
#set global $sbPath=".."
-<!--#set global $topmenu="comingEpisodes"#-->
+#set global $topmenu="comingEpisodes"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
#set $sort = $sickbeard.COMING_EPS_SORT
@@ -16,13 +16,14 @@
<span class="listing_current">Current</span>
<span class="listing_default">Future</span>
<span class="listing_toofar">Distant</span>
- <span class="listing_unknown">Unknown</span>
-</div><br/>
+ <!-- <span class="listing_unknown">Unknown</span> //-->
+</div>
#if $layout == 'list':
-<!-- start list view -->
+<!-- start list view //-->
<script type="text/javascript" src="$sbRoot/js/plotTooltip.js"></script>
<script type="text/javascript" charset="utf-8">
+<!--
\$.tablesorter.addParser({
id: 'nextAirDate',
is: function(s) {
@@ -100,21 +101,22 @@
3: { sorter: 'loadingNames' },
4: { sorter: 'loadingNames' },
5: { sorter: 'quality' },
- 6: { sorter: 'status' },
- 7: { sorter: false},
- 8: { sorter: false}
+ 6: { sorter: false},
+ 7: { sorter: false}
}
});
});
+//-->
</script>
#set $show_div = "listing_default"
<input type="hidden" id="sbRoot" value="$sbRoot" />
+<br/>
<table id="showListTable" class="sickbeardTable tablesorter" cellspacing="1" border="0" cellpadding="0">
- <thead><tr><th>Next Ep</th><th>Next Ep Name</th><th>Airdate</th><th>Show</th><th>Network</th><th>Quality</th><th>Status</th><th>tvDB</th><th>Force</th></tr></thead>
+ <thead><tr><th class="nowrap">Next Ep</th><th>Next Ep Name</th><th>Airdate</th><th>Show</th><th>Network</th><th>Quality</th><th>tvDB</th><th>Force</th></tr></thead>
<tbody>
#for $cur_result in $sql_results:
@@ -136,16 +138,16 @@
#end if
#end if
- <!-- start $cur_result["show_name"] -->
- <tr class="$show_div"><div>
- <td align="left"><span class="float-left"><%="%02ix%02i" % (int(cur_result["season"]), int(cur_result["episode"])) %></span>
+ <!-- start $cur_result["show_name"] //-->
+ <tr class="$show_div">
+ <td class="nowrap">
#if $cur_result["description"] != "" and $cur_result["description"] != None:
- <img alt="" src="$sbRoot/images/info32.png" height="16" width="16" class="plotInfo" id="plot_info_<%=str(cur_result["showid"])+"_"+str(cur_result["season"])+"_"+str(cur_result["episode"])%>" />
+ <img alt="" src="$sbRoot/images/info32.png" height="16" width="16" class="plotInfo" id="plot_info_<%=str(cur_result["showid"])+"_"+str(cur_result["season"])+"_"+str(cur_result["episode"])%>" />
#end if
- </div>
+ <span><%="%02ix%02i" % (int(cur_result["season"]), int(cur_result["episode"])) %></span>
</td>
<td>$cur_result["name"]</td>
- <td align="center" nowrap="nowrap">$datetime.date.fromordinal(int($cur_result["airdate"]))</td>
+ <td align="center" class="nowrap">$datetime.date.fromordinal(int($cur_result["airdate"]))</td>
<td><a href="$sbRoot/home/displayShow?show=${cur_result["showid"]}">$cur_result["show_name"]</a>
#if int($cur_result["paused"]):
<span class="pause">[paused]</span>
@@ -159,18 +161,18 @@ $qualityPresetStrings[int($cur_result["quality"])]
Custom
#end if
</td>
- <td align="center">$cur_result["show_status"]</td>
<td align="center"><a href="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}" onclick="window.open(this.href, '_blank'); return false;" title="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}"><img alt="[info]" height="16" width="16" src="$sbRoot/images/search32.png" /></a></td>
- <td align="center"><a href="$sbRoot/home/searchEpisode?show=${cur_result["showid"]}&amp;season=$cur_result["season"]&amp;episode=$cur_result["episode"]" title="Force Update" id="forceUpdate|${cur_result["showid"]}|$cur_result["show_name"]" class="forceUpdate"><img alt="[update]" height="16" width="16" src="$sbRoot/images/forceUpdate32.png" id="forceUpdateImage|${cur_result["showid"]}" /></a></td>
+ <td align="center"><a href="$sbRoot/home/searchEpisode?show=${cur_result["showid"]}&amp;season=$cur_result["season"]&amp;episode=$cur_result["episode"]" title="Force Update" id="forceUpdate-${cur_result["showid"]}" class="forceUpdate"><img alt="[update]" height="16" width="16" src="$sbRoot/images/forceUpdate32.png" id="forceUpdateImage-${cur_result["showid"]}" /></a></td>
</tr>
- <!-- end $cur_result["show_name"] -->
+ <!-- end $cur_result["show_name"] //-->
#end for
</tbody>
</table>
-<!-- end list view -->
+<!-- end list view //-->
#else:
-<!-- start non list view -->
+<!-- start non list view //-->
<script type="text/javascript" charset="utf-8">
+<!--
\$(document).ready(function(){
\$(".ep_summary").hide();
\$(".ep_summaryTrigger").click(function() {
@@ -181,10 +183,8 @@ Custom
});
});
});
+//-->
</script>
-<div id="outsideWrapper">
-<div id="insideWrapper">
- <div id="insideContent">
#set $cur_segment = None
#set $too_late_header = False
@@ -196,7 +196,7 @@ Custom
#end if
#for $cur_result in $sql_results:
- <!-- start $cur_result["show_name"] -->
+ <!-- start $cur_result["show_name"] //-->
#if int($cur_result["paused"]) and not $sickbeard.COMING_EPS_DISPLAY_PAUSED:
#continue
@@ -231,10 +231,11 @@ Custom
#set $show_div = "ep_listing listing_toofar"
#set $too_late_header = True
#elif $cur_ep_airdate >= $today and $cur_ep_airdate < $next_week:
- <br /><h1 class="day">$datetime.date.fromordinal($cur_ep_airdate).strftime("%A").decode($sickbeard.SYS_ENCODING)</h1>
#if $cur_ep_airdate == $today:
+ <br /><h1 class="day">$datetime.date.fromordinal($cur_ep_airdate).strftime("%A").decode($sickbeard.SYS_ENCODING) <span style="font-size: 12px;">[today]</span></h1>
#set $show_div = "ep_listing listing_current"
#else:
+ <br /><h1 class="day">$datetime.date.fromordinal($cur_ep_airdate).strftime("%A").decode($sickbeard.SYS_ENCODING)</h1>
#set $show_div = "ep_listing listing_default"
#end if
#end if
@@ -252,12 +253,12 @@ Custom
<span class="pause">[paused]</span>
#end if
</a></span>
- <span class="tvshowTitleIcons"><a href="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}" onclick="window.open(this.href, '_blank'); return false;" title="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}"><img alt="[info]" height="20" width="20" src="$sbRoot/images/search32.png" /></a> <a href="$sbRoot/home/searchEpisode?show=${cur_result["showid"]}&amp;season=$cur_result["season"]&amp;episode=$cur_result["episode"]" title="Force Update" id="forceUpdate|${cur_result["showid"]}|$cur_result["show_name"]" class="forceUpdate"><img alt="[update]" height="20" width="20" src="$sbRoot/images/forceUpdate32.png" id="forceUpdateImage|${cur_result["showid"]}" /></a></span>
+ <span class="tvshowTitleIcons"><a href="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}" onclick="window.open(this.href, '_blank'); return false;" title="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}"><img alt="[info]" height="20" width="20" src="$sbRoot/images/search32.png" /></a> <a href="$sbRoot/home/searchEpisode?show=${cur_result["showid"]}&amp;season=$cur_result["season"]&amp;episode=$cur_result["episode"]" title="Force Update" id="forceUpdate-${cur_result["showid"]}" class="forceUpdate"><img alt="[update]" height="20" width="20" src="$sbRoot/images/forceUpdate32.png" id="forceUpdateImage-${cur_result["showid"]}" /></a></span>
</th>
</tr>
<tr>
<th #if $layout == 'banner' then "class=\"nobg\"" else "rowspan=\"2\""# style="background-color: #efefef;">
- <a href="$sbRoot/home/displayShow?show=${cur_result["showid"]}"><img alt="" class="#if $layout == 'banner' then "bannerThumb" else "posterThumb"#" src="$sbRoot/showPoster/?show=${cur_result["showid"]}&which=$layout" /></a>
+ <a href="$sbRoot/home/displayShow?show=${cur_result["showid"]}"><img alt="" class="#if $layout == 'banner' then "bannerThumb" else "posterThumb"#" src="$sbRoot/showPoster/?show=${cur_result["showid"]}&amp;which=$layout" /></a>
</th>
#if $layout == 'banner':
</tr>
@@ -288,18 +289,19 @@ Custom
</div>
</div>
- <!-- end $cur_result["show_name"] -->
+ <!-- end $cur_result["show_name"] //-->
#end for
<br/>
- </div>
-</div>
-</div>
-<!-- end non list view -->
+
+<!-- end non list view //-->
#end if
<script type="text/javascript" charset="utf-8">
+<!--
setInterval(window.location.reload, 180000); // Refresh every 3 minutes
+//-->
</script>
+<script type="text/javascript" src="$sbRoot/js/tableClick.js"></script>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
10 data/interfaces/default/config.tmpl
@@ -4,12 +4,12 @@
#set global $sbPath=".."
-<!--#set global $topmenu="config"#-->
+#set global $topmenu="config"#
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
<div id="summary" class="align-left">
<table class="infoTable" cellspacing="1" border="0" cellpadding="0">
- <tr><td class="infoTableHeader">SB Version: </td><td class="infoTableCell">alpha ($sickbeard.version.SICKBEARD_VERSION) <!-- &ndash; build.date --></td></tr>
+ <tr><td class="infoTableHeader">SB Version: </td><td class="infoTableCell">alpha ($sickbeard.version.SICKBEARD_VERSION) <!-- &ndash; build.date //--></td></tr>
<tr><td class="infoTableHeader">SB Config file: </td><td class="infoTableCell">$sickbeard.CONFIG_FILE</td></tr>
<tr><td class="infoTableHeader">SB Cache Dir: </td><td class="infoTableCell">$sickbeard.CACHE_DIR</td></tr>
<tr><td class="infoTableHeader">SB Arguments: </td><td class="infoTableCell">$sickbeard.MY_ARGS</td></tr>
@@ -18,13 +18,13 @@
<tr style="border-top: 1px dotted #666666;"><td class="infoTableHeader">Homepage </td><td class="infoTableCell"><a href="http://www.sickbeard.com/">http://www.sickbeard.com/</a></td></tr>
<tr><td class="infoTableHeader">Forums </td><td class="infoTableCell"><a href="http://sickbeard.com/forums/">http://sickbeard.com/forums/</a></td></tr>
<tr><td class="infoTableHeader">Source </td><td class="infoTableCell"><a href="https://github.com/midgetspy/Sick-Beard/">https://github.com/midgetspy/Sick-Beard/</a></td></tr>
- <tr><td class="infoTableHeader">Bug Tracker &<br/> Windows Builds </td><td class="infoTableCell"><a href="http://code.google.com/p/sickbeard/">http://code.google.com/p/sickbeard/</a></td></tr>
- <tr><td class="infoTableHeader">Internet Relay Chat </td><td class="infoTableCell"><a href="irc://irc.freenode.net/#sickbeard"><i>#sickbeard</i> on <i>irc.freenode.net</i></a>
+ <tr><td class="infoTableHeader">Bug Tracker &amp;<br/> Windows Builds </td><td class="infoTableCell"><a href="http://code.google.com/p/sickbeard/">http://code.google.com/p/sickbeard/</a></td></tr>
+ <tr><td class="infoTableHeader">Internet Relay Chat </td><td class="infoTableCell"><a href="irc://irc.freenode.net/#sickbeard"><i>#sickbeard</i> on <i>irc.freenode.net</i></a></td></tr>
</table>
</div>
<table class="infoTable" cellspacing="1" border="0" cellpadding="0"><tr>
- <td><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=JA8M7VDY89SQ4" onclick="window.open(this.href); return false;"><img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="[donate]" /></td>
+ <td><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=JA8M7VDY89SQ4" onclick="window.open(this.href); return false;"><img src="$sbRoot/images/paypal/btn_donateCC_LG.gif" alt="[donate]" /></a></td>
<td>Sickbeard is free, but you can contribute by giving a <b><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=JA8M7VDY89SQ4" onclick="window.open(this.href); return false;">donation</a></b>.</td>
</tr></table>
View
14 data/interfaces/default/config_episodedownloads.tmpl
@@ -4,11 +4,12 @@
#set global $sbPath="../.."
-<!--#set global $topmenu="config"#-->
+#set global $topmenu="config"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
<script type="text/javascript" charset="utf-8">
+<!--
\$(document).ready(function(){
\$.fn.nzb_method_handler = function() {
@@ -30,6 +31,7 @@
\$(this).nzb_method_handler();
});
+//-->
</script>
<div id="config">
@@ -81,7 +83,7 @@
<input type="submit" value="Save Changes" /><br/>
</fieldset>
- </div><!-- /component-group1 -->
+ </div><!-- /component-group1 //-->
<div id="core-component-group2" class="component-group clearfix">
@@ -199,7 +201,7 @@
<input type="submit" value="Save Changes" /><br/>
</fieldset>
- </div><!-- /component-group2 -->
+ </div><!-- /component-group2 //-->
<div id="core-component-group3" class="component-group clearfix">
@@ -273,20 +275,22 @@
<input type="submit" value="Save Changes" /><br/>
</fieldset>
- </div><!-- /component-group3 -->
+ </div><!-- /component-group3 //-->
<br/><input type="submit" value="Save Changes" /><br/>
- </div><!-- /config-components -->
+ </div><!-- /config-components //-->
</form>
</div></div>
<div class="clearfix"></div>
<script type="text/javascript" charset="utf-8">
+<!--
jQuery('#nzb_dir').fileBrowser({ title: 'Select NZB Black Hole/Watch Directory' });
jQuery('#torrent_dir').fileBrowser({ title: 'Select Torrent Black Hole/Watch Directory' });
jQuery('#tv_download_dir').fileBrowser({ title: 'Select TV Download Directory' });
+//-->
</script>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
36 data/interfaces/default/config_general.tmpl
@@ -9,15 +9,18 @@
#set global $sbPath="../.."
-<!--#set global $topmenu="config"#-->
+#set global $topmenu="config"#
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
<script type="text/javascript">
+<!--
nameTestURL = "$sbRoot/config/general/testNaming";
+//-->
</script>
<script type="text/javascript" src="$sbRoot/js/configGeneral.js"></script>
#set $anyQualities, $bestQualities = $Quality.splitQuality($sickbeard.QUALITY_DEFAULT)
<script type="text/javascript" charset="utf-8">
+<!--
\$(document).ready(function(){
if (#if $sickbeard.QUALITY_DEFAULT in $qualityPresets then "1" else "0"#) {
@@ -51,6 +54,7 @@ nameTestURL = "$sbRoot/config/general/testNaming";
});
});
+//-->
</script>
<div id="config">
@@ -99,7 +103,7 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<input type="submit" value="Save Changes" />
</fieldset>
- </div><!-- /component-group1 -->
+ </div><!-- /component-group1 //-->
<div id="core-component-group2" class="component-group clearfix">
@@ -157,17 +161,17 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<div class="clearfix" style="clear:left;"></div>
<div class="field-pair clearfix">
- <input type="checkbox" name="use_banner" id="use_banner" #if $sickbeard.USE_BANNER then "CHECKED" else ""#>
+ <input type="checkbox" name="use_banner" id="use_banner" #if $sickbeard.USE_BANNER then "checked=checked" else ""#/>
<label class="clearfix" for="use_banner">
<span class="component-title">Use Banners</span>
<span class="component-desc">Use banners instead of posters for your Show Folder Images</span>
</label>
</div>
- <input type="submit" value="Save Changes"><br/>
+ <input type="submit" value="Save Changes" /><br/>
</fieldset>
- </div><!-- /component-group2 -->
+ </div><!-- /component-group2 //-->
<div id="core-component-group3" class="component-group clearfix">
@@ -229,9 +233,9 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<input type="submit" value="Save Changes" />
</fieldset>
- </div><!-- /component-group3 -->
+ </div><!-- /component-group3 //-->
- <div id="core-component-group5" class="component-group clearfix">
+ <div id="core-component-group4" class="component-group clearfix">
<div class="component-group-desc">
<h3>Episode Naming</h3>
@@ -292,7 +296,7 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<span class="component-desc">
<select name="naming_sep_type" id="naming_sep_type">
#for ($i, $ex) in enumerate($config.naming_sep_type_text):
- <option value="$i" #if $i == int($sickbeard.NAMING_SEP_TYPE) then "selected=\"selected\"" else ""#>$ex
+ <option value="$i" #if $i == int($sickbeard.NAMING_SEP_TYPE) then "selected=\"selected\"" else ""#>$ex</option>
#end for
</select>
</span>
@@ -305,7 +309,7 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<span class="component-desc">
<select name="naming_ep_type" id="naming_ep_type">
#for ($i, $ex) in enumerate($config.naming_ep_type_text):
- <option value="$i" #if $i == int($sickbeard.NAMING_EP_TYPE) then "selected=\"selected\"" else ""#>$ex
+ <option value="$i" #if $i == int($sickbeard.NAMING_EP_TYPE) then "selected=\"selected\"" else ""#>$ex</option>
#end for
</select>
</span>
@@ -315,9 +319,7 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<div class="field-pair" style="padding:10px; background: #efefef;">
<label class="clearfix" for="naming_ep_type">
<span class="component-title jumbo">Single-Ep Example:</span>
- <span class="component-desc jumbo">
- <div id="normalExampleText"></div>
- </span>
+ <span class="component-desc jumbo" id="normalExampleText"></span>
</label>
</div>
@@ -327,7 +329,7 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<span class="component-desc">
<select name="naming_multi_ep_type" id="naming_multi_ep_type">
#for ($i, $ex) in enumerate($config.naming_multi_ep_type_text):
- <option value="$i" #if $i == int($sickbeard.NAMING_MULTI_EP_TYPE) then "selected=\"selected\"" else ""#>$ex
+ <option value="$i" #if $i == int($sickbeard.NAMING_MULTI_EP_TYPE) then "selected=\"selected\"" else ""#>$ex</option>
#end for
</select>
</span>
@@ -337,9 +339,7 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<div class="field-pair" style="padding:10px; background: #efefef;">
<label class="clearfix" for="naming_multi_ep_type">
<span class="component-title jumbo">Multi-Ep Example:</span>
- <span class="component-desc jumbo">
- <div id="multiExampleText"></div>
- </span>
+ <span class="component-desc jumbo" id="multiExampleText"></span>
</label>
</div>
@@ -360,7 +360,7 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<input type="submit" value="Save Changes" />
</fieldset>
- </div><!-- /component-group5 -->
+ </div><!-- /component-group4 //-->
<br/><input type="submit" value="Save Changes" /><br/>
</div><!-- /config-components -->
@@ -370,7 +370,9 @@ nameTestURL = "$sbRoot/config/general/testNaming";
<div class="clearfix"></div>
<script type="text/javascript" charset="utf-8">
+<!--
jQuery('#log_dir').fileBrowser({ title: 'Select Log Directory' });
+//-->
</script>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
36 data/interfaces/default/config_notifications.tmpl
@@ -4,7 +4,7 @@
#set global $sbPath="../.."
-<!--#set global $topmenu="config"#-->
+#set global $topmenu="config"#
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
<script type="text/javascript" src="$sbRoot/js/configNotifications.js"></script>
@@ -106,10 +106,10 @@
<input type="button" value="Test XBMC" id="testXBMC" />
<input type="submit" value="Save Changes" />
- </div><!-- /enabler_xbmc -->
+ </div><!-- /enabler_xbmc //-->
</fieldset>
- </div><!-- /component-group -->
+ </div><!-- /component-group //-->
<div id="core-component-group2" class="component-group clearfix">
@@ -174,10 +174,10 @@
<input type="button" value="Test Growl" id="testGrowl" />
<input type="submit" value="Save Changes" />
- </div><!-- /content_use_growl -->
+ </div><!-- /content_use_growl //-->
</fieldset>
- </div><!-- /component-group -->
+ </div><!-- /component-group //-->
<div id="core-component-group3" class="component-group clearfix">
@@ -249,10 +249,10 @@
<input type="button" value="Test Twitter" id="testTwitter" />
<input type="submit" value="Save Changes" />
- </div><!-- /content_use_twitter -->
+ </div><!-- /content_use_twitter //-->
</fieldset>
- </div><!-- /component-group -->
+ </div><!-- /component-group //-->
<div id="core-component-group4" class="component-group clearfix">
@@ -302,11 +302,11 @@
<label class="nocheck clearfix">
<span class="component-title">Prowl priority:</span>
<select id="prowl_priority" name="prowl_priority">
- <option value="-2" #if $sickbeard.PROWL_PRIORITY == "-2" then "selected" else ""#>Very Low
- <option value="-1" #if $sickbeard.PROWL_PRIORITY == "-1" then "selected" else ""#>Moderate
- <option value="0" #if $sickbeard.PROWL_PRIORITY == "0" then "selected" else ""#>Normal
- <option value="1" #if $sickbeard.PROWL_PRIORITY == "1" then "selected" else ""#>High
- <option value="2" #if $sickbeard.PROWL_PRIORITY == "2" then "selected" else ""#>Emergency
+ <option value="-2" #if $sickbeard.PROWL_PRIORITY == "-2" then 'selected="selected"' else ""#>Very Low</option>
+ <option value="-1" #if $sickbeard.PROWL_PRIORITY == "-1" then 'selected="selected"' else ""#>Moderate</option>
+ <option value="0" #if $sickbeard.PROWL_PRIORITY == "0" then 'selected="selected"' else ""#>Normal</option>
+ <option value="1" #if $sickbeard.PROWL_PRIORITY == "1" then 'selected="selected"' else ""#>High</option>
+ <option value="2" #if $sickbeard.PROWL_PRIORITY == "2" then 'selected="selected"' else ""#>Emergency</option>
</select>
</label>
<label class="nocheck clearfix">
@@ -319,10 +319,10 @@
<input type="button" value="Test Prowl" id="testProwl" />
<input type="submit" value="Save Changes" />
- </div><!-- /content_use_prowl -->
+ </div><!-- /content_use_prowl //-->
</fieldset>
- </div><!-- /component-group -->
+ </div><!-- /component-group //-->
<div id="core-component-group5" class="component-group clearfix">
@@ -383,7 +383,7 @@
<input type="button" value="Test Notifo" id="testNotifo" />
<input type="submit" value="Save Changes" />
- </div><!-- /content_use_notifo -->
+ </div><!-- /content_use_notifo //-->
</fieldset>
@@ -426,14 +426,14 @@
<input type="button" value="Test Libnotify" id="testLibnotify" />
<input type="submit" value="Save Changes" />
- </div><!-- /content_use_libnotify -->
+ </div><!-- /content_use_libnotify //-->
</fieldset>
- </div><!-- /component-group -->
+ </div><!-- /component-group //-->
<br/><input type="submit" value="Save Changes" /><br/>
- </div><!-- /config-components -->
+ </div><!-- /config-components //-->
</form>
View
16 data/interfaces/default/config_providers.tmpl
@@ -4,19 +4,21 @@
#set global $sbPath="../.."
-<!--#set global $topmenu="config"#-->
+#set global $topmenu="config"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
<script type="text/javascript" src="$sbRoot/js/configProviders.js"></script>
<script type="text/javascript" charset="utf-8">
+<!--
sbRoot = '$sbRoot';
\$(document).ready(function(){
#for $curNewznabProvider in $sickbeard.newznabProviderList:
\$(this).addProvider('$curNewznabProvider.getID()', '$curNewznabProvider.name', '$curNewznabProvider.url', '$curNewznabProvider.key', $int($curNewznabProvider.default));
#end for
});
+//-->
</script>
<div id="config">
@@ -61,7 +63,7 @@ sbRoot = '$sbRoot';
<input type="hidden" name="provider_order" id="provider_order" value="<%=" ".join([x.getID()+':'+str(int(x.isEnabled())) for x in sickbeard.providers.sortedProviderList()])%>"/>
<br/><input type="submit" value="Save Changes" /><br/>
</fieldset>
- </div><!-- /component-group1 -->
+ </div><!-- /component-group1 //-->
<div id="core-component-group2" class="component-group clearfix">
@@ -87,7 +89,7 @@ sbRoot = '$sbRoot';
</div>
-<!-- start div for editing providers -->
+<!-- start div for editing providers //-->
#if $sickbeard.SHOW_TVBINZ:
<div class="providerDiv" id="tvbinzDiv">
<div class="field-pair">
@@ -170,12 +172,12 @@ sbRoot = '$sbRoot';
</label>
</div>
</div>
-<!-- end div for editing providers -->
+<!-- end div for editing providers //-->
<input type="submit" value="Save Changes" /><br/>
</fieldset>
- </div><!-- /component-group2 -->
+ </div><!-- /component-group2 //-->
<div id="core-component-group3" class="component-group clearfix">
@@ -230,12 +232,12 @@ sbRoot = '$sbRoot';
</div>
</fieldset>
- </div><!-- /component-group3 -->
+ </div><!-- /component-group3 //-->
<br/><input type="submit" value="Save Changes" /><br/>
- </div><!-- /config-components -->
+ </div><!-- /config-components //-->
</form>
</div></div>
View
41 data/interfaces/default/displayShow.tmpl
@@ -6,7 +6,7 @@
#set global $title=$show.name
#set global $header = '<a href="http://thetvdb.com/?tab=series&amp;id=%d" target="_new">%s</a>' % ($show.tvdbid, $show.name)
-<!--#set global $topmenu="manageShows"#-->
+#set global $topmenu="manageShows"#
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
<script type="text/javascript" src="$sbRoot/js/jquery.bookmarkscroll.js"></script>
@@ -21,7 +21,7 @@
#end for
</div><br/>
-<input type="hidden" id="sbRoot" value="$sbRoot">
+<input type="hidden" id="sbRoot" value="$sbRoot" />
<script type="text/javascript" src="$sbRoot/js/displayShow.js"></script>
<script type="text/javascript" src="$sbRoot/js/plotTooltip.js"></script>
@@ -30,7 +30,7 @@
<div class="navShow"><img id="prevShow" width="16" height="18" src="$sbRoot/images/prev.gif" alt="&lt;&lt;" title="Prev Show" /></div>
<select id="pickShow">
#for $curShow in $sortedShowList:
-<option value="$curShow.tvdbid" #if $curShow == $show then "SELECTED" else ""#>$curShow.name
+<option value="$curShow.tvdbid" #if $curShow == $show then "selected=\"selected\"" else ""#>$curShow.name</option>
#end for
</select>
<div class="navShow"><img id="nextShow" width="16" height="18" src="$sbRoot/images/next.gif" alt="&gt;&gt;" title="Next Show" /></div>
@@ -77,11 +77,11 @@ Change selected episodes to
#if $curStatus == $DOWNLOADED:
#continue
#end if
-<option value="$curStatus">$statusStrings[$curStatus]
+<option value="$curStatus">$statusStrings[$curStatus]</option>
#end for
</select>
-<input type="hidden" id="showID" value="$show.tvdbid">
-<input type="button" id="changeStatus" value="Go"><br />
+<input type="hidden" id="showID" value="$show.tvdbid" />
+<input type="button" id="changeStatus" value="Go" /><br />
<br />
<br />
</div>
@@ -90,13 +90,13 @@ Change selected episodes to
#set $odd = 0
<div class="float-right" id="checkboxControls">
-<label for="wanted"><span class="wanted">Wanted: <b>$epCounts[$Overview.WANTED]</b> <input type="checkbox" id="wanted" checked=checked></span>
-<label for="qual"><span class="qual">Low Quality: <b>$epCounts[$Overview.QUAL]</b> <input type="checkbox" id="qual" checked=checked></span>
-<label for"good"><span class="good">Downloaded: <b>$epCounts[$Overview.GOOD]</b> <input type="checkbox" id="good" checked=checked></span>
-<label for="skipped"><span class="skipped">Skipped: <b>$epCounts[$Overview.SKIPPED]</b> <input type="checkbox" id="skipped" checked=checked></label>
+<label for="wanted"><span class="wanted">Wanted: <b>$epCounts[$Overview.WANTED]</b> <input type="checkbox" id="wanted" checked="checked" /></span></label>
+<label for="qual"><span class="qual">Low Quality: <b>$epCounts[$Overview.QUAL]</b> <input type="checkbox" id="qual" checked="checked" /></span></label>
+<label for="good"><span class="good">Downloaded: <b>$epCounts[$Overview.GOOD]</b> <input type="checkbox" id="good" checked="checked" /></span></label>
+<label for="skipped"><span class="skipped">Skipped: <b>$epCounts[$Overview.SKIPPED]</b> <input type="checkbox" id="skipped" checked="checked" /></span></label>
<br />
-<span class="selectAll"><a href="#" onClick="return false" class="seriesCheck">Select Filtered Episodes</a> </span>
-<span class="clearAll"><a href="#" onClick="return false" class="clearAll">Clear All</a></span>
+<span class="selectAll"><a href="#" onclick="return false;" class="seriesCheck">Select Filtered Episodes</a></span>
+<span class="clearAll"><a href="#" onclick="return false;" class="clearAll">Clear All</a></span>
</div>
<div style="clear:both;" class="clearfix"></div>
@@ -106,14 +106,13 @@ Change selected episodes to
#for $epResult in $sqlResults:
#if int($epResult["season"]) != $curSeason:
- <tr><td colspan="9"></td></tr>
+ <tr><td colspan="9"><a name="season-$epResult["season"]"></a></td></tr>
<tr class="seasonheader" id="season-$epResult["season"]">
- <a name="season-$epResult["season"]"></a>
<td colspan="9">
<h2>#if int($epResult["season"]) == 0 then "Specials" else "Season "+str($epResult["season"])#</h2>
</td>
</tr>
- <tr id="season-$epResult["season"]-cols"><th width="1%"><input type="checkbox" class="seasonCheck" id="$epResult["season"]"></th><th>NFO</th><th>TBN</th><th>Episode</th><th>Name</th><th>Airdate</th><th>Filename</th><th>Status</th><th>Action</th></tr>
+ <tr id="season-$epResult["season"]-cols"><th width="1%"><input type="checkbox" class="seasonCheck" id="$epResult["season"]" /></th><th>NFO</th><th>TBN</th><th>Episode</th><th>Name</th><th class="nowrap">Airdate</th><th>Filename</th><th>Status</th><th>Action</th></tr>
#set $curSeason = int($epResult["season"])
#end if
@@ -122,19 +121,19 @@ Change selected episodes to
<tr class="$Overview.overviewStrings[$epCats[$epStr]] season-$curSeason">
<td width="1%">
#if int($epResult["status"]) != $UNAIRED
- <input type="checkbox" class="epCheck" id="<%=str(epResult["season"])+'x'+str(epResult["episode"])%>" name="<%=str(epResult["season"]) +"x"+str(epResult["episode"]) %>">
+ <input type="checkbox" class="epCheck" id="<%=str(epResult["season"])+'x'+str(epResult["episode"])%>" name="<%=str(epResult["season"]) +"x"+str(epResult["episode"]) %>" />
#end if
</td>
- <td align="center"><img src="$sbRoot/images/#if $epResult["hasnfo"] == 1 then "nfo.gif\" alt=\"Y" else "nfo-no.gif\" alt=\"N"#" width="23" height="11"></td>
- <td align="center"><img src="$sbRoot/images/#if $epResult["hastbn"] == 1 then "tbn.gif\" alt=\"Y" else "tbn-no.gif\" alt=\"N"#" width="23" height="11"></td>
+ <td align="center"><img src="$sbRoot/images/#if $epResult["hasnfo"] == 1 then "nfo.gif\" alt=\"Y" else "nfo-no.gif\" alt=\"N"#" width="23" height="11" /></td>
+ <td align="center"><img src="$sbRoot/images/#if $epResult["hastbn"] == 1 then "tbn.gif\" alt=\"Y" else "tbn-no.gif\" alt=\"N"#" width="23" height="11" /></td>
<td align="center">$epResult["episode"]</td>
<td>
$epResult["name"]
#if $epResult["description"] != "" and $epResult["description"] != None:
- <img src="$sbRoot/images/info32.png" height="16" class="plotInfo" id="plot_info_$show.tvdbid<%="_"+str(epResult["season"])+"_"+str(epResult["episode"])%>" />
+ <img src="$sbRoot/images/info32.png" height="16" class="plotInfo" alt="" id="plot_info_$show.tvdbid<%="_"+str(epResult["season"])+"_"+str(epResult["episode"])%>" />
#end if
</td>
- <td align="center" nowrap="nowrap">#if int($epResult["airdate"]) == 1 then "never" else $datetime.date.fromordinal(int($epResult["airdate"]))#</td>
+ <td align="center">#if int($epResult["airdate"]) == 1 then "never" else $datetime.date.fromordinal(int($epResult["airdate"]))#</td>
<td>
#if $epLoc and $show._location and $epLoc.lower().startswith($show._location.lower()):
$epLoc[len($show._location)+1:]
@@ -146,7 +145,7 @@ $epLoc
<td>$statusStrings[int($epResult["status"])]</td>
<td align="center">
#if int($epResult["season"]) != 0:
- <a href="searchEpisode?show=$show.tvdbid&season=$epResult["season"]&episode=$epResult["episode"]"><img src="$sbRoot/images/search32.png" height="16" alt="search" title="Manual Search" /></a>
+ <a href="searchEpisode?show=$show.tvdbid&amp;season=$epResult["season"]&amp;episode=$epResult["episode"]"><img src="$sbRoot/images/search32.png" height="16" alt="search" title="Manual Search" /></a>
#end if
</td>
</tr>
View
22 data/interfaces/default/editShow.tmpl
@@ -6,10 +6,11 @@
#set global $sbPath=".."
-<!--#set global $topmenu="home"#-->
+#set global $topmenu="home"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
-<script>
+<script type="text/javascript" charset="utf-8">
+<!--
\$(document).ready(function(){
\$.getJSON('$sbRoot/home/addShows/getTVDBLanguages', {}, function(data){
@@ -38,12 +39,13 @@
});
});
+//-->
</script>
<form action="editShow" method="post">
-<input type="hidden" name="show" value="$show.tvdbid">
-Location: <input type="text" name="location" id="location" value="$show._location" size="50"><br />
+<input type="hidden" name="show" value="$show.tvdbid" />
+Location: <input type="text" name="location" id="location" value="$show._location" size="50" /><br />
<br />
Quality:
#set $qualities = $common.Quality.splitQuality(int($show.quality))
@@ -55,22 +57,24 @@ Quality:
Language: <select name="tvdbLang" id="tvdbLangSelect"></select>
<br />
<br />
-Use Season Folders: <input type="checkbox" name="seasonfolders" #if $show.seasonfolders == 1 then "CHECKED" else ""#><br /><br />
-Paused: <input type="checkbox" name="paused" #if $show.paused == 1 then "CHECKED" else ""#><br /><br />
+Use Season Folders: <input type="checkbox" name="seasonfolders" #if $show.seasonfolders == 1 then "checked=\"checked\"" else ""# /><br /><br />
+Paused: <input type="checkbox" name="paused" #if $show.paused == 1 then "checked=\"checked\"" else ""# /><br /><br />
Air by date:
#if ($show.genre and "Talk Show" not in $show.genre) or not $show.genre:
-<input type="checkbox" name="air_by_date" #if $show.air_by_date == 1 then "CHECKED" else ""#><br />
+<input type="checkbox" name="air_by_date" #if $show.air_by_date == 1 then "checked=\"checked\"" else ""# /><br />
(check this if the show is released as Show.03.02.2010 rather than Show.S02E03)
#else
-<input type="checkbox" DISABLED CHECKED>
+<input type="checkbox" disabled=\"disabled\" checked=\"checked\" />
#end if
<br /><br />
-<input type="submit" value="Submit">
+<input type="submit" value="Submit" />
</form>
<script type="text/javascript" charset="utf-8">
+<!--
jQuery('#location').fileBrowser({ title: 'Select Show Location' });
+//-->
</script>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
4 data/interfaces/default/errorlogs.tmpl
@@ -5,7 +5,7 @@
#set global $sbPath = ".."
-<!--#set global $topmenu="errorlogs"#-->
+#set global $topmenu="errorlogs"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
@@ -16,7 +16,9 @@
</div>
<script type="text/javascript" charset="utf-8">
+<!--
setInterval(window.location.reload, 180000); // Refresh every 3 minutes
+//-->
</script>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
2 data/interfaces/default/genericMessage.tmpl
@@ -4,7 +4,7 @@
#set global $sbPath="../.."
-<!--#set global $topmenu="home"#-->
+#set global $topmenu="home"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
View
8 data/interfaces/default/history.tmpl
@@ -10,27 +10,29 @@
#set global $sbPath=".."
-<!--#set global $topmenu="history"#-->
+#set global $topmenu="history"#
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
<script type="text/javascript">
+<!--
\$(document).ready(function()
{
\$("#historyTable:has(tbody tr)").tablesorter({
widgets: ['zebra'],
sortList: [[0,1]]
});
});
+//-->
</script>
<table id="historyTable" class="sickbeardTable tablesorter" cellspacing="1" border="0" cellpadding="0">
- <thead><tr><th>Time</th><th>Episode</th><th>Action</th><th>Provider</th><th>Quality</th></tr></thead>
+ <thead><tr><th class="nowrap">Time</th><th>Episode</th><th>Action</th><th>Provider</th><th>Quality</th></tr></thead>
<tbody>
#for $hItem in $historyResults:
#set $curStatus, $curQuality = $Quality.splitCompositeStatus(int($hItem["action"]))
<tr>
- <td nowrap="nowrap">$datetime.datetime.strptime(str($hItem["date"]), $history.dateFormat)</td>
+ <td>$datetime.datetime.strptime(str($hItem["date"]), $history.dateFormat)</td>
<td><a href="$sbRoot/home/displayShow?show=$hItem["showid"]#season-$hItem["season"]">$hItem["show_name"] - <%=str(hItem["season"]) +"x"+ "%02i" % int(hItem["episode"]) %></a></td>
<td align="center">$statusStrings[$curStatus]</td>
<td align="center">
View
32 data/interfaces/default/home.tmpl
@@ -8,7 +8,7 @@
#set global $sbPath = ".."
-<!--#set global $topmenu="home"#-->
+#set global $topmenu="home"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
@@ -18,6 +18,7 @@
#set $allEps = $myDB.select("SELECT showid, COUNT(*) FROM tv_episodes WHERE season != 0 and episode != 0 AND (airdate != 1 OR status IN ("+",".join([str(x) for x in ($Quality.DOWNLOADED + $Quality.SNATCHED + $Quality.SNATCHED_PROPER) + [$ARCHIVED]])+")) AND airdate <= "+$today+" AND status != "+str($IGNORED)+" GROUP BY showid")
<script type="text/javascript" charset="utf-8">
+<!--
\$.tablesorter.addParser({
id: 'nextAirDate',
is: function(s) {
@@ -135,14 +136,15 @@
});
});
+//-->
</script>
<table id="showListTable" class="sickbeardTable tablesorter" cellspacing="1" border="0" cellpadding="0">
- <thead><tr><th>Next Ep</th><th>Show</th><th>Network</th><th>Quality</th><th>Downloads</th><th>Active</th><th>Status</th></tr></thead>
+ <thead><tr><th class="nowrap">Next Ep</th><th>Show</th><th>Network</th><th>Quality</th><th>Downloads</th><th>Active</th><th>Status</th></tr></thead>
<tfoot>
<tr>
- <th rowspan="1" colspan="1"><a href="$sbRoot/home/addShows/">Add Show</a></th>
+ <th rowspan="1" colspan="1" align="center"><a href="$sbRoot/home/addShows/">Add Show</a></th>
<th rowspan="1" colspan="6"></th>
</tr>
</tfoot>
@@ -195,30 +197,34 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
#end if
<tr>
- <td align="center" nowrap="nowrap">#if len($curEp) != 0 then $curEp[0].airdate else ""#</td>
+ <td align="center">#if len($curEp) != 0 then $curEp[0].airdate else ""#</td>
<td><a href="$sbRoot/home/displayShow?show=$curShow.tvdbid">$curShow.name</a></td>
<td>$curShow.network</td>
#if $curShow.quality in $qualityPresets:
<td align="center">$qualityPresetStrings[$curShow.quality]</td>
#else:
<td align="center">Custom</td>
#end if
- <td align="center"><!--$dlStat--><div id="progressbar$curShow.tvdbid" style="position:relative;"></div></td>
+ <td align="center"><!--$dlStat--><div id="progressbar$curShow.tvdbid" style="position:relative;"></div>
+ <script type="text/javascript">
+ <!--
+ \$(function() {
+ \$("\#progressbar$curShow.tvdbid").progressbar({
+ value: parseInt($nom) * 100 / parseInt($den)
+ });
+ \$("\#progressbar$curShow.tvdbid").append( "<div class='progressbarText'>$dlStat</div>" )
+ });
+ //-->
+ </script>
+ </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>
<td align="center">$curShow.status</td>
</tr>
-<script type="text/javascript">
- \$(function() {
- \$("\#progressbar$curShow.tvdbid").progressbar({
- value: parseInt($nom) * 100 / parseInt($den)
- });
- \$("\#progressbar$curShow.tvdbid").append( "<!--$dlStat--><div class='progressbarText'>$dlStat</div>" )
- });
-</script>
#end for
</tbody>
</table>
+<script type="text/javascript" src="$sbRoot/js/tableClick.js"></script>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
18 data/interfaces/default/home_addExistingShow.tmpl
@@ -6,8 +6,8 @@
#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, "data/interfaces/default/inc_top.tmpl")
@@ -17,13 +17,15 @@
<script type="text/javascript" src="$sbRoot/js/rootDirs.js"></script>
<script type="text/javascript" src="$sbRoot/js/addShowOptions.js"></script>
-<script>
+<script type="text/javascript" charset="utf-8">
+<!--
\$(document).ready(function(){
\$( "#tabs" ).tabs({
collapsible: true,
selected: #if $sickbeard.ROOT_DIRS then '-1' else '0'#
});
});
+//-->
</script>
<div id="tabs">
@@ -42,17 +44,17 @@
<p class="align-left">Sick Beard can add existing shows, using the current options, by using locally stored NFO/XML metadata to eliminate user interaction.<br />
If you would rather have Sick Beard prompt you to customize each show, then use the checkbox below.</p>
-<p class="align-left"><input type="checkbox" name="promptForSettings" id="promptForSettings"> <label for="promptForSettings">Prompt me to set settings for each show</label></p>
+<p class="align-left"><input type="checkbox" name="promptForSettings" id="promptForSettings" /> <label for="promptForSettings">Prompt me to set settings for each show</label></p>
-<hr>
+<hr />
<h3>Displaying folders within these directories which aren't already added to Sick Beard:</h3>
-<ul id="rootDirStaticList"></ul>
+<ul id="rootDirStaticList"><li></li></ul>
<br />
<div id="tableDiv"></div>
<br />
<br />
-<input type="button" value="Submit" id="submitShowDirs">
-
+<input type="button" value="Submit" id="submitShowDirs" />
+</form>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
39 data/interfaces/default/home_addShows.tmpl
@@ -5,13 +5,14 @@
#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, "data/interfaces/default/inc_top.tmpl")
-<script>
+<script type="text/javascript" charset="utf-8">
+<!--
\$(document).ready(function(){
\$('#btnNewShow').click(function() {
@@ -22,29 +23,29 @@
});
});
+//-->
</script>
<div id="addShowPortal">
-<button id="btnNewShow">
-<div class="button"><img src="$sbRoot/images/add-new32.png" /></div>
-<div class="buttontext">
- <h2>Add New Show</h2>
- <p>For shows that you haven't downloaded yet, this option finds a show on TVDB.com, creates a directory for its episodes, and adds it to Sick Beard.</p>
-</div>
-</button>
+ <button id="btnNewShow" class="ui-button">
+ <div class="button"><img src="$sbRoot/images/add-new32.png" alt="Add New Show"/></div>
+ <div class="buttontext">
+ <h2>Add New Show</h2>
+ <p>For shows that you haven't downloaded yet, this option finds a show on TVDB.com, creates a directory for its episodes, and adds it to Sick Beard.</p>
+ </div>
+ </button>
-<br/><br/>
+ <br/><br/>
-<button id="btnExistingShow">
-<div class="button"><img src="$sbRoot/images/add-existing32.png" /></div>
-<div class="buttontext">
- <h2>Add Existing Shows</h2>
- <p>Use this option to add shows that already have a folder created on your hard drive. Sick Beard will scan your existing metadata/episodes and add the show accordingly.</p>
-</div>
-</button>
+ <button id="btnExistingShow" class="ui-button">
+ <div class="button"><img src="$sbRoot/images/add-existing32.png" alt="Add Existing Shows"/></div>
+ <div class="buttontext">
+ <h2>Add Existing Shows</h2>
+ <p>Use this option to add shows that already have a folder created on your hard drive. Sick Beard will scan your existing metadata/episodes and add the show accordingly.</p>
+ </div>
+ </button>
</div>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
-
View
22 data/interfaces/default/home_newShow.tmpl
@@ -5,8 +5,8 @@
#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, "data/interfaces/default/inc_top.tmpl")
@@ -28,9 +28,9 @@
<div class="stepDiv">
#if $use_provided_info:
Show retrieved from existing metadata: <a href="http://thetvdb.com/?tab=series&id=$provided_tvdb_id">$provided_tvdb_name</a>
- <input type="hidden" name="tvdbLang" value="en">
- <input type="hidden" name="whichSeries" value="$provided_tvdb_id">
- <input type="hidden" id="providedName" value="$provided_tvdb_name">
+ <input type="hidden" name="tvdbLang" value="en" />
+ <input type="hidden" name="whichSeries" value="$provided_tvdb_id" />
+ <input type="hidden" id="providedName" value="$provided_tvdb_name" />
#else:
<input type="text" id="nameToSearch" value="$default_show_name" />
<select name="tvdbLang" id="tvdbLangSelect">
@@ -53,7 +53,7 @@
<div class="stepDiv">
#if $provided_show_dir:
Pre-chosen Destination Folder: <b>$provided_show_dir</b> <br />
- <input type="hidden" id="fullShowPath" name="fullShowPath" value="$provided_show_dir"><br />
+ <input type="hidden" id="fullShowPath" name="fullShowPath" value="$provided_show_dir" /><br />
#else
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_rootDirs.tmpl")
#end if
@@ -68,22 +68,20 @@
</fieldset>
#for $curNextDir in $other_shows:
-<input type="hidden" name="other_shows" value="$curNextDir">
+<input type="hidden" name="other_shows" value="$curNextDir" />
#end for
-<input type="hidden" name="skipShow" id="skipShow" value="">
+<input type="hidden" name="skipShow" id="skipShow" value="" />
</form>
<br />
<div style="width: 800px; text-align: center;">
-<input type="button" id="addShowButton" value="Add Show" disabled>
+<input type="button" id="addShowButton" value="Add Show" disabled="disabled" />
#if $provided_show_dir:
-<input type="button" id="skipShowButton" value="Skip Show">
+<input type="button" id="skipShowButton" value="Skip Show" />
#end if
</div>
<script type="text/javascript" src="$sbRoot/js/rootDirs.js"></script>
-</div>
-
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
5 data/interfaces/default/home_postprocess.tmpl
@@ -3,8 +3,7 @@
#set global $sbPath="../.."
-
-<!--#set global $topmenu="home"#-->
+#set global $topmenu="home"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
@@ -14,7 +13,9 @@ Enter the folder containing the episode: <input type="text" name="dir" id="episo
<br />
<script type="text/javascript" charset="utf-8">
+<!--
jQuery('#episodeDir').fileBrowser({ title: 'Select Unprocessed Episode Folder', key: 'postprocessPath' });
+//-->
</script>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
8 data/interfaces/default/inc_addShowOptions.tmpl
@@ -5,7 +5,7 @@
<span class="component-title">
<select name="defaultStatus" id="statusSelect">
#for $curStatus in [$SKIPPED, $WANTED, $ARCHIVED, $IGNORED]:
- <option value="$curStatus" #if $sickbeard.STATUS_DEFAULT == $curStatus then 'selected="selected"' else ''#>$statusStrings[$curStatus]
+ <option value="$curStatus" #if $sickbeard.STATUS_DEFAULT == $curStatus then 'selected="selected"' else ''#>$statusStrings[$curStatus]</option>
#end for
</select>
</span>
@@ -14,7 +14,7 @@
</div>
<div class="field-pair alt">
- <input type="checkbox" name="seasonFolders" id="seasonFolders" #if $sickbeard.SEASON_FOLDERS_DEFAULT then "checked=\"checked\"" else ""#>
+ <input type="checkbox" name="seasonFolders" id="seasonFolders" #if $sickbeard.SEASON_FOLDERS_DEFAULT then "checked=\"checked\"" else ""# />
<label for="seasonFolders" class="clearfix">
<span class="component-title">Season Folders</span>
<span class="component-desc">Store episodes in season folders?</span>
@@ -27,8 +27,8 @@
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_qualityChooser.tmpl")
<div class="field-pair alt">
- <label for="makeDefault" class="nocheck clearfix">
- <span class="component-title"><input type="button" id="saveDefaultsButton" value="Save Defaults" disabled></span>
+ <label for="saveDefaultsButton" class="nocheck clearfix">
+ <span class="component-title"><input type="button" id="saveDefaultsButton" value="Save Defaults" disabled="disabled" /></span>
<span class="component-desc">Persist current values as the defaults</span>
</label>
</div>
View
3 data/interfaces/default/inc_bottom.tmpl
@@ -2,6 +2,7 @@
#import datetime
#from sickbeard import db
#from sickbeard.common import *
+ </div>
</div>
<div class="footer">
#set $myDB = $db.DBConnection()
@@ -13,7 +14,7 @@
<b>$numShows shows</b> ($numGoodShows active) | <b>$numDLEpisodes/$numEpisodes</b> episodes downloaded
<br />
<b>Search</b>: <%=str(sickbeard.currentSearchScheduler.timeLeft()).split('.')[0]%> |
-<!--<b>Update</b>: <a%a=str(sickbeard.updateScheduler.timeLeft()).split('.')[0]%> | -->
+<!--<b>Update</b>: <a%a=str(sickbeard.updateScheduler.timeLeft()).split('.')[0]%> | //-->
<b>Backlog</b>: $sickbeard.backlogSearchScheduler.nextRun().strftime("%a %b %d").decode($sickbeard.SYS_ENCODING) <br />
</div>
</body>
View
2 data/interfaces/default/inc_qualityChooser.tmpl
@@ -50,4 +50,4 @@
</div>
<br style="clear:both;"/>
-</div><br />
+</div><br />
View
4 data/interfaces/default/inc_rootDirs.tmpl
@@ -10,7 +10,7 @@
#set $backend_dirs = []
#end if
-<input type="hidden" id="whichDefaultRootDir" value="$backend_default">
+<input type="hidden" id="whichDefaultRootDir" value="$backend_default" />
<div style="padding-bottom: 5px; padding-top: 10px;">
<select name="rootDir" id="rootDirs" size="6" style="min-width: 400px;">
#for $cur_dir in $backend_dirs:
@@ -24,5 +24,5 @@
<input type="button" id="deleteRootDir" value="Delete" />
<input type="button" id="defaultRootDir" value="Set as Default *" />
</div>
-<input type="text" style="display: none" id="rootDirText">
+<input type="text" style="display: none" id="rootDirText" />
<br />
View
53 data/interfaces/default/inc_top.tmpl
@@ -23,6 +23,8 @@
<style type="text/css">
<!--
+#contentWrapper { background: url("$sbRoot/images/bg.gif") repeat scroll 0 0 transparent; }
+
.ac_loading { background: white url("$sbRoot/images/loading16.gif") right center no-repeat; }
.sf-sub-indicator { background: url("$sbRoot/images/arrows.png") no-repeat -10px -100px; }
.sf-shadow ul { background: url("$sbRoot/images/shadow.png") no-repeat bottom right; }
@@ -55,7 +57,7 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
.ui-widget-overlay { background: #aaaaaa url("$sbRoot/css/smooth-grinder/images/ui-bg_flat_0_000000_40x100.png") 50% 50% repeat; opacity: .35;filter:Alpha(Opacity=35); }
.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #000000 url("$sbRoot/css/smooth-grinder/images/ui-bg_flat_0_000000_40x100.png") 50% 50% repeat-x; opacity: .35;filter:Alpha(Opacity=35); -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }
--->
+//-->
</style>
<script type="text/javascript" src="$sbRoot/js/jquery-1.5.1.min.js"></script>
@@ -70,27 +72,13 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
<script type="text/javascript" src="$sbRoot/js/jquery.tablesorter-2.0.3.min.js"></script>
<script type="text/javascript" src="$sbRoot/js/tools.tooltip-1.2.5.min.js"></script>
<script type="text/javascript" src="$sbRoot/js/jquery.pnotify-1.0.1.min.js"></script>
- <script type="text/javascript" src="$sbRoot/js/jquery.divgrow-1.3.1.min.js"></script>
-
- <script type="text/javascript" charset="utf-8">
-\$(document).ready(function(){
+ <script type="text/javascript" src="$sbRoot/js/jquery.expand-1.3.8.js"></script>
- \$("table.sickbeardTable td").hover(
- function() { \$(this).find("a").parent().addClass("hover"); },
- function() { \$(this).find("a").parent().removeClass("hover");
- } );
-
- \$("table.sickbeardTable td").click( function() {
- var href = \$(this).find("a").attr("href");
- if(href) { window.location = href; }
- });
-
-});
- </script>
<script type="text/javascript" charset="utf-8">
+ <!--
sbRoot = "$sbRoot";
//HTML for scrolltopcontrol, which is auto wrapped in DIV w/ ID="topcontrol"
- top_image_html = '<img src="$sbRoot/images/top.gif" style="width:31px; height:11px" />';
+ top_image_html = '<img src="$sbRoot/images/top.gif" style="width:31px; height:11px" alt="Jump to top" />';
$.Browser = {
defaults: {
@@ -99,11 +87,13 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
autocompleteURL: '$sbRoot/browser/complete'
}
};
+ //-->
</script>
<script type="text/javascript" src="$sbRoot/js/jquery.scrolltopcontrol-1.1.js"></script>
<script type="text/javascript" src="$sbRoot/js/browser.js"></script>
-<script type="text/javascript">
+<script type="text/javascript">
+<!--
\$(document).ready(function(){
\$("ul.sf-menu").supersubs({
minWidth: 12, // minimum width of sub-menus in em units
@@ -145,7 +135,7 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
return false;
});
- \$.pnotify.defaults.pnotify_width = "325px";
+ \$.pnotify.defaults.pnotify_width = "340px";
\$.pnotify.defaults.pnotify_history = false;
\$.pnotify.defaults.pnotify_delay = 4000;
@@ -166,6 +156,7 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
#end for
});
+//-->
</script>
</head>
@@ -203,6 +194,7 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
<ul>
<li><a href="$sbRoot/manage/backlogOverview"><img src="$sbRoot/images/menu/backlog16.png" alt="" width="16" height="16" />Backlog Overview</a></li>
<li><a href="$sbRoot/manage/manageSearches"><img src="$sbRoot/images/menu/managesearches16.png" alt="" width="16" height="16" />Manage Searches</a></li>
+ <li><a href="$sbRoot/manage/episodeStatuses"><img src="$sbRoot/images/menu/backlog16.png" alt="" width="16" height="16" />Episode Status Management</a></li>
</ul>
</li>
<li id="NAVconfig"><a href="$sbRoot/config">Config</a>
@@ -218,7 +210,7 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
<li><a href="$sbRoot/errorlogs/viewlog"><img src="$sbRoot/images/menu/viewlog16.png" alt="" width="16" height="16" />View Log</a></li>
</ul>
</li>
- <li id="donate"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=JA8M7VDY89SQ4" onclick="window.open(this.href); return false;"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" alt="[donate]" /></a></li>
+ <li id="donate"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=JA8M7VDY89SQ4" onclick="window.open(this.href); return false;"><img src="$sbRoot/images/paypal/btn_donate_LG.gif" alt="[donate]" /></a></li>
</ul>
#if $varExists('submenu'):
<div id="SubMenu">
@@ -244,22 +236,7 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
</div>
#end if
-<div id="content">
-
-#for $curMessage in $flash.messages():
-<br />
-<div class="message ui-state-highlight ui-corner-all">
- <p><span class="ui-icon ui-icon-info"></span>$curMessage[0]</p>
- $curMessage[1]
-</div>
-#end for
-
-#for $curError in $flash.errors():
-<br />
-<div class="message ui-state-error ui-corner-all">
- <p><span class="ui-icon ui-icon-alert"></span>$curError[0]</p>
- $curError[1]
-</div>
-#end for
+<div id="contentWrapper">
+ <div id="content">
<h1>#if $varExists('header') then $header else $title#</h1>
View
100 data/interfaces/default/manage.tmpl
@@ -4,120 +4,136 @@
#set global $sbPath="../.."
-
-<!--#set global $topmenu="manage"#-->
+#set global $topmenu="manage"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
<script type="text/javascript" charset="utf-8">
-\$.tablesorter.addParser({
- // set a unique id
- id: 'showNames',
- is: function(s) {
- // return false so this parser is not auto detected
- return false;
+<!--
+\$.tablesorter.addParser({
+ id: 'showNames',
+ is: function(s) {
+ return false;
},
format: function(s) {
- // format your data for normalization
if (s.indexOf('The ') == 0)
return s.replace('The ', '')
else if (s.indexOf('A ') == 0)
return s.replace('A ', '')
else
- return s;
+ return s;
+ },
+ type: 'text'
+});
+
+\$.tablesorter.addParser({
+ id: 'images',
+ is: function(s) {
+ return false;
},
- // set type, either numeric or text
- type: 'text'
-});
-
+ format: function(s) {
+ if (s == '')
+ return '~~';
+ else
+ return s;
+ },
+ type: 'text'
+});
+
\$(document).ready(function()
{
\$("#massUpdateTable:has(tbody tr)").tablesorter({
- sortList: [[3,1],[1,0]],
+ sortList: [[1,0]],
widgets: ['zebra'],
headers: {
0: { sorter: false},
1: { sorter: 'showNames'},
- 5: { sorter: false},
+ 3: { sorter: 'images'},
+ 4: { sorter: 'images'},
6: { sorter: false},
- 7: { sorter: false}
+ 7: { sorter: false},
+ 8: { sorter: false},
+ 9: { sorter: false}
}
});
});
+//-->
</script>
<script type="text/javascript" src="$sbRoot/js/massUpdate.js"></script>
<form name="massUpdateForm" method="post" action="massUpdate">
<table id="massUpdateTable" class="sickbeardTable tablesorter" cellspacing="1" border="0" cellpadding="0">
-
<thead>
<tr>
<th width="1%">Edit&nbsp;<input type="checkbox" class="bulkCheck" id="editCheck" /></th>
- <th>Show</th>
+ <th class="nowrap">Show Name</th>
<th>Quality</th>
- <th>Active</th>
+ <th>Season<br/>Folders</th>
+ <th>Paused</th>
<th>Status</th>
<th width="1%">Update&nbsp;<input type="checkbox" class="bulkCheck" id="updateCheck" /></th>
<th width="1%">Rescan&nbsp;<input type="checkbox" class="bulkCheck" id="refreshCheck" /></th>
<th width="1%">Rename&nbsp;<input type="checkbox" class="bulkCheck" id="renameCheck" /></th>
-<!-- <th>Force Metadata Regen <input type="checkbox" class="bulkCheck" id="metadataCheck" /></th>-->
+<!-- <th>Force Metadata Regen <input type="checkbox" class="bulkCheck" id="metadataCheck" /></th>//-->
+ <th width="1%">Delete&nbsp;<input type="checkbox" class="bulkCheck" id="deleteCheck" /></th>
</tr>
</thead>
+<tfoot>
+ <tr>
+ <td rowspan="1" colspan="1" align="center"><input type="button" value="Edit Selected Shows" id="submitMassEdit" /></td>
+ <td rowspan="1" colspan="9" align="right"><input type="button" value="Submit" id="submitMassUpdate" /></td>
+ </tr>
+</tfoot>
<tbody>
-
#set $myShowList = $sickbeard.showList
$myShowList.sort(lambda x, y: cmp(x.name, y.name))
#for $curShow in $myShowList:
#set $curEp = $curShow.nextEpisode()
-
#set $curUpdate_disabled = ""
#set $curRefresh_disabled = ""
#set $curRename_disabled = ""
+#set $curDelete_disabled = ""
#if $sickbeard.showQueueScheduler.action.isBeingUpdated($curShow) or $sickbeard.showQueueScheduler.action.isInUpdateQueue($curShow):
- #set $curUpdate_disabled = "disabled "
+ #set $curUpdate_disabled = "disabled=\"disabled\" "
#end if
#set $curUpdate = "<input type=\"checkbox\" class=\"updateCheck\" id=\"update-"+str($curShow.tvdbid)+"\" "+$curUpdate_disabled+"/>"
-
#if $sickbeard.showQueueScheduler.action.isBeingRefreshed($curShow) or $sickbeard.showQueueScheduler.action.isInRefreshQueue($curShow):
- #set $curRefresh_disabled = "disabled "
+ #set $curRefresh_disabled = "disabled=\"disabled\" "
#end if
#set $curRefresh = "<input type=\"checkbox\" class=\"refreshCheck\" id=\"refresh-"+str($curShow.tvdbid)+"\" "+$curRefresh_disabled+"/>"
-
#if $sickbeard.showQueueScheduler.action.isBeingRenamed($curShow) or $sickbeard.showQueueScheduler.action.isInRenameQueue($curShow):
- #set $curRename = "disabled "
+ #set $curRename = "disabled=\"disabled\" "
#end if
#set $curRename = "<input type=\"checkbox\" class=\"renameCheck\" id=\"rename-"+str($curShow.tvdbid)+"\" "+$curRename_disabled+"/>"
+#if $sickbeard.showQueueScheduler.action.isBeingRenamed($curShow) or $sickbeard.showQueueScheduler.action.isInRenameQueue($curShow) or $sickbeard.showQueueScheduler.action.isInRefreshQueue($curShow):
+ #set $curDelete = "disabled=\"disabled\" "
+#end if
+#set $curDelete = "<input type=\"checkbox\" class=\"deleteCheck\" id=\"delete-"+str($curShow.tvdbid)+"\" "+$curDelete_disabled+"/>"
<tr>
<td align="center"><input type="checkbox" class="editCheck" id="edit-$curShow.tvdbid" /></td>
- <td nowrap="nowrap"><a href="$sbRoot/home/displayShow?show=$curShow.tvdbid">$curShow.name</a></td>
- <td align="center">
+ <td><a href="$sbRoot/home/displayShow?show=$curShow.tvdbid">$curShow.name</a></td>
#if $curShow.quality in $qualityPresets:
-$qualityPresetStrings[$curShow.quality]
+ <td align="center">$qualityPresetStrings[$curShow.quality]</td>
#else:
-Custom
+ <td align="center">Custom</td>
#end if
- </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>
+ <td align="center"><img src="$sbRoot/images/#if int($curShow.seasonfolders) == 1 then "yes16.png\" alt=\"Y\"" else "no16.png\" alt=\"N\""# width="16" height="16" /></td>
+ <td align="center"><img src="$sbRoot/images/#if int($curShow.paused) == 1 then "yes16.png\" alt=\"Y\"" else "no16.png\" alt=\"N\""# width="16" height="16" /></td>
<td align="center">$curShow.status</td>
<td align="center">$curUpdate</td>
<td align="center">$curRefresh</td>
<td align="center">$curRename</td>
-<!-- <td align="center"><input type="checkbox" class="metadataCheck" id="metadata-$curShow.tvdbid" /></td>-->
+<!-- <td align="center"><input type="checkbox" class="metadataCheck" id="metadata-$curShow.tvdbid" /></td>//-->
+ <td align="center">$curDelete</td>
</tr>
-
#end for
</tbody>
-<tfoot>
- <tr>
- <td align="center"><input type="button" value="Edit Selected Shows" id="submitMassEdit" /></td>
- <td colspan="7" align="right"><input type="button" value="Submit" id="submitMassUpdate" /></td>
- </tr>
-</tfoot>
</table>
</form>
+<script type="text/javascript" src="$sbRoot/js/tableClick.js"></script>
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_bottom.tmpl")
View
19 data/interfaces/default/manage_backlogOverview.tmpl
@@ -5,7 +5,7 @@
#set global $sbPath=".."
-<!--#set global $topmenu="manage"#-->
+#set global $topmenu="manage"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")
@@ -18,8 +18,8 @@
#end for
<div class="h2footer align-right">
- <span class="wanted" style="white-space:nowrap;">Wanted: <b>$totalWanted</b></span>
- <span class="qual" style="white-space:nowrap;">Low Quality: <b>$totalQual</b></span>
+ <span class="wanted nowrap">Wanted: <b>$totalWanted</b></span>
+ <span class="qual nowrap">Low Quality: <b>$totalQual</b></span>
</div><br/>
<table class="sickbeardTable" cellspacing="1" border="0" cellpadding="0">
@@ -34,13 +34,14 @@
<td colspan="3">
<br/><h2 style="display: inline; position:absolute;"><a href="$sbRoot/home/displayShow?show=$curShow.tvdbid">$curShow.name</a></h2>
<div class="float-right">
- <span class="wanted" style="white-space:nowrap;">Wanted: <b>$showCounts[$curShow.tvdbid][$Overview.WANTED]</b></span>
- <span class="qual" style="white-space:nowrap;">Low Quality: <b>$showCounts[$curShow.tvdbid][$Overview.QUAL]</b></span>
+ <span class="wanted nowrap">Wanted: <b>$show