Fix for NoneType can't be iterated when viewing home page.

This commit is contained in:
echel0n 2014-06-07 21:13:40 -07:00
parent 97a1693abf
commit df7c3f4aff
1 changed files with 6 additions and 6 deletions

View File

@ -66,10 +66,10 @@
type: 'numeric'
});
\$.tablesorter.addParser({
\$.tablesorter.addParser({
id: 'eps',
is: function(s) {
return false;
return false;
},
format: function(s) {
match = s.match(/^(.*)/);
@ -78,7 +78,7 @@
return -10;
var nums = match[1].split(" / ");
if (parseInt(nums[0]) === 0)
return parseInt(nums[1]);
@ -170,7 +170,7 @@
</span>
</div>
#for $curShowlist in $showlists:
#for $curShowlist in $showlists if $varExists('showlists') else $sickbeard.showList
#set $curListType = $curShowlist[0]
#set $myShowList = $list($curShowlist[1])
#if $curListType == "Anime":
@ -234,7 +234,7 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
#set $den = 1
#end if
#set $which_thumb = $layout+"_thumb"
#set $which_thumb = $layout+"_thumb"
<tr>
#if len($curEp) != 0:
@ -308,4 +308,4 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
<script type="text/javascript" src="$sbRoot/js/tableClick.js"></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")