mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 02:23:38 +00:00
Fix network sorting on home page
This commit is contained in:
parent
26bc577092
commit
1dc38bca9b
2 changed files with 153 additions and 150 deletions
|
@ -34,6 +34,7 @@
|
||||||
* Add highlight to current status text in header on Episode Overview page
|
* Add highlight to current status text in header on Episode Overview page
|
||||||
* Fix table alignment on homepage
|
* Fix table alignment on homepage
|
||||||
* Fix duplicate entries in cache database
|
* Fix duplicate entries in cache database
|
||||||
|
* Fix network sorting on home page
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
* Add TVRage network name standardization
|
* Add TVRage network name standardization
|
||||||
|
|
|
@ -49,110 +49,112 @@
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
\$.tablesorter.addParser({
|
\$.tablesorter.addParser({
|
||||||
id: 'loadingNames',
|
id: 'loadingNames',
|
||||||
is: function(s) {
|
is: function(s) {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
format: function(s) {
|
format: function(s) {
|
||||||
if (s.indexOf('Loading...') == 0)
|
if (s.indexOf('Loading...') == 0)
|
||||||
return s.replace('Loading...','000');
|
return s.replace('Loading...','000');
|
||||||
else
|
else
|
||||||
#if not $sickbeard.SORT_ARTICLE:
|
#if not $sickbeard.SORT_ARTICLE:
|
||||||
return (s || '').replace(/^(?:(?:A(?!\s+to)n?)|The)\s(\w)/i, '$1');
|
return (s || '').replace(/^(?:(?:A(?!\s+to)n?)|The)\s(\w)/i, '$1');
|
||||||
#else:
|
#else:
|
||||||
return (s || '');
|
return (s || '');
|
||||||
#end if
|
#end if
|
||||||
},
|
},
|
||||||
type: 'text'
|
type: 'text'
|
||||||
});
|
});
|
||||||
|
|
||||||
\$.tablesorter.addParser({
|
\$.tablesorter.addParser({
|
||||||
id: 'quality',
|
id: 'quality',
|
||||||
is: function(s) {
|
is: function(s) {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
format: function(s) {
|
format: function(s) {
|
||||||
return s.replace('hd1080p',5).replace('hd720p',4).replace('hd',3).replace('sd',2).replace('any',1).replace('custom',7);
|
return s.replace('hd1080p',5).replace('hd720p',4).replace('hd',3).replace('sd',2).replace('any',1).replace('custom',7);
|
||||||
},
|
},
|
||||||
type: 'numeric'
|
type: 'numeric'
|
||||||
});
|
});
|
||||||
|
|
||||||
\$(document).ready(function(){
|
\$(document).ready(function(){
|
||||||
|
|
||||||
\$("img#network").on('error', function(){
|
\$("img#network").on('error', function(){
|
||||||
\$(this).parent().text(\$(this).attr('alt'));
|
\$(this).parent().text(\$(this).attr('alt'));
|
||||||
\$(this).remove();
|
\$(this).remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
\$("#showListTableShows:has(tbody tr)").tablesorter({
|
\$("#showListTableShows:has(tbody tr)").tablesorter({
|
||||||
sortList: [[5,1],[1,0]],
|
sortList: [[5,1],[1,0]],
|
||||||
textExtraction: {
|
textExtraction: {
|
||||||
0: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
0: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
||||||
|
2: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
||||||
3: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
3: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
||||||
4: function(node) { return \$(node).find("span").text(); },
|
4: function(node) { return \$(node).find("span").text(); },
|
||||||
5: function(node) { return \$(node).find("img").attr("alt"); }
|
5: function(node) { return \$(node).find("img").attr("alt"); }
|
||||||
},
|
},
|
||||||
widgets: ['saveSort', 'zebra', 'stickyHeaders', 'filter'],
|
widgets: ['saveSort', 'zebra', 'stickyHeaders', 'filter'],
|
||||||
headers: {
|
headers: {
|
||||||
0: { sorter: 'isoDate' },
|
0: { sorter: 'isoDate' },
|
||||||
1: { sorter: 'loadingNames' },
|
1: { sorter: 'loadingNames' },
|
||||||
3: { sorter: 'quality' },
|
3: { sorter: 'quality' },
|
||||||
4: { sorter: 'eps' }
|
4: { sorter: 'eps' }
|
||||||
},
|
},
|
||||||
widgetOptions : {
|
widgetOptions : {
|
||||||
filter_columnFilters: false,
|
filter_columnFilters: false,
|
||||||
filter_reset: '.resetshows'
|
filter_reset: '.resetshows'
|
||||||
},
|
},
|
||||||
sortStable: true
|
sortStable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
\$("#showListTableAnime:has(tbody tr)").tablesorter({
|
\$("#showListTableAnime:has(tbody tr)").tablesorter({
|
||||||
sortList: [[5,1],[1,0]],
|
sortList: [[5,1],[1,0]],
|
||||||
textExtraction: {
|
textExtraction: {
|
||||||
0: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
0: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
||||||
|
2: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
||||||
3: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
3: function(node) { return \$(node).find("span").text().toLowerCase(); },
|
||||||
4: function(node) { return \$(node).find("span").text(); },
|
4: function(node) { return \$(node).find("span").text(); },
|
||||||
5: function(node) { return \$(node).find("img").attr("alt"); }
|
5: function(node) { return \$(node).find("img").attr("alt"); }
|
||||||
},
|
},
|
||||||
widgets: ['saveSort', 'zebra', 'stickyHeaders', 'filter'],
|
widgets: ['saveSort', 'zebra', 'stickyHeaders', 'filter'],
|
||||||
headers: {
|
headers: {
|
||||||
0: { sorter: 'isoDate' },
|
0: { sorter: 'isoDate' },
|
||||||
1: { sorter: 'loadingNames' },
|
1: { sorter: 'loadingNames' },
|
||||||
3: { sorter: 'quality' },
|
3: { sorter: 'quality' },
|
||||||
4: { sorter: 'eps' }
|
4: { sorter: 'eps' }
|
||||||
},
|
},
|
||||||
widgetOptions : {
|
widgetOptions : {
|
||||||
filter_columnFilters: false,
|
filter_columnFilters: false,
|
||||||
filter_reset: '.resetanime'
|
filter_reset: '.resetanime'
|
||||||
},
|
},
|
||||||
sortStable: true
|
sortStable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
\$.tablesorter.filter.bindSearch( "#showListTableShows", \$('.search') );
|
\$.tablesorter.filter.bindSearch( "#showListTableShows", \$('.search') );
|
||||||
|
|
||||||
#if $sickbeard.ANIME_SPLIT_HOME:
|
#if $sickbeard.ANIME_SPLIT_HOME:
|
||||||
\$.tablesorter.filter.bindSearch( "#showListTableAnime", \$('.search') );
|
\$.tablesorter.filter.bindSearch( "#showListTableAnime", \$('.search') );
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#set $fuzzydate = 'airdate'
|
#set $fuzzydate = 'airdate'
|
||||||
#if $sickbeard.FUZZY_DATING:
|
#if $sickbeard.FUZZY_DATING:
|
||||||
fuzzyMoment({
|
fuzzyMoment({
|
||||||
dtInline : #if $layout == 'poster' then "true" else "false"#,
|
dtInline : #if $layout == 'poster' then "true" else "false"#,
|
||||||
containerClass : '.${fuzzydate}',
|
containerClass : '.${fuzzydate}',
|
||||||
dateHasTime : false,
|
dateHasTime : false,
|
||||||
dateFormat : '${sickbeard.DATE_PRESET}',
|
dateFormat : '${sickbeard.DATE_PRESET}',
|
||||||
timeFormat : '${sickbeard.TIME_PRESET}',
|
timeFormat : '${sickbeard.TIME_PRESET}',
|
||||||
trimZero : #if $sickbeard.TRIM_ZERO then "true" else "false"#
|
trimZero : #if $sickbeard.TRIM_ZERO then "true" else "false"#
|
||||||
});
|
});
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
var \$container = [\$('#container'), \$('#container-anime')];
|
var \$container = [\$('#container'), \$('#container-anime')];
|
||||||
|
|
||||||
jQuery.each(\$container, function (j) {
|
jQuery.each(\$container, function (j) {
|
||||||
this.isotope({
|
this.isotope({
|
||||||
itemSelector: '.show',
|
itemSelector: '.show',
|
||||||
sortBy : '$sickbeard.POSTER_SORTBY',
|
sortBy : '$sickbeard.POSTER_SORTBY',
|
||||||
sortAscending: $sickbeard.POSTER_SORTDIR,
|
sortAscending: $sickbeard.POSTER_SORTDIR,
|
||||||
layoutMode: 'masonry',
|
layoutMode: 'masonry',
|
||||||
masonry: {
|
masonry: {
|
||||||
columnWidth: 12,
|
columnWidth: 12,
|
||||||
|
@ -170,7 +172,7 @@
|
||||||
network: '[data-network]',
|
network: '[data-network]',
|
||||||
date: function( itemElem ) {
|
date: function( itemElem ) {
|
||||||
var date = \$( itemElem ).attr('data-date');
|
var date = \$( itemElem ).attr('data-date');
|
||||||
return date.length && parseInt( date, 10 ) || Number.POSITIVE_INFINITY;
|
return date.length && parseInt( date, 10 ) || Number.POSITIVE_INFINITY;
|
||||||
},
|
},
|
||||||
progress: function( itemElem ) {
|
progress: function( itemElem ) {
|
||||||
var progress = \$( itemElem ).attr('data-progress');
|
var progress = \$( itemElem ).attr('data-progress');
|
||||||
|
@ -184,7 +186,7 @@
|
||||||
var sortValue = this.value;
|
var sortValue = this.value;
|
||||||
\$('#container').isotope({ sortBy: sortValue });
|
\$('#container').isotope({ sortBy: sortValue });
|
||||||
\$('#container-anime').isotope({ sortBy: sortValue });
|
\$('#container-anime').isotope({ sortBy: sortValue });
|
||||||
\$.get(this.options[this.selectedIndex].getAttribute('data-sort'));
|
\$.get(this.options[this.selectedIndex].getAttribute('data-sort'));
|
||||||
});
|
});
|
||||||
|
|
||||||
\$('#postersortdirection').on( 'change', function() {
|
\$('#postersortdirection').on( 'change', function() {
|
||||||
|
@ -192,10 +194,10 @@
|
||||||
sortDirection = sortDirection == 'true';
|
sortDirection = sortDirection == 'true';
|
||||||
\$('#container').isotope({ sortAscending: sortDirection });
|
\$('#container').isotope({ sortAscending: sortDirection });
|
||||||
\$('#container-anime').isotope({ sortAscending: sortDirection });
|
\$('#container-anime').isotope({ sortAscending: sortDirection });
|
||||||
\$.get(this.options[this.selectedIndex].getAttribute('data-sort'));
|
\$.get(this.options[this.selectedIndex].getAttribute('data-sort'));
|
||||||
});
|
});
|
||||||
#if $sickbeard.HOME_SEARCH_FOCUS
|
#if $sickbeard.HOME_SEARCH_FOCUS
|
||||||
\$('#search_show_name').focus();
|
\$('#search_show_name').focus();
|
||||||
#end if
|
#end if
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -230,24 +232,24 @@
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
#if $layout == 'poster':
|
#if $layout == 'poster':
|
||||||
<span>Sort By:
|
<span>Sort By:
|
||||||
<select id="postersort" class="form-control form-control-inline input-sm" tabindex="$tab#set $tab += 1#">
|
<select id="postersort" class="form-control form-control-inline input-sm" tabindex="$tab#set $tab += 1#">
|
||||||
<option value="name" data-sort="$sbRoot/setPosterSortBy/?sort=name" #if $sickbeard.POSTER_SORTBY == "name" then "selected=\"selected\"" else ""#>Name</option>
|
<option value="name" data-sort="$sbRoot/setPosterSortBy/?sort=name" #if $sickbeard.POSTER_SORTBY == "name" then "selected=\"selected\"" else ""#>Name</option>
|
||||||
<option value="date" data-sort="$sbRoot/setPosterSortBy/?sort=date" #if $sickbeard.POSTER_SORTBY == "date" then "selected=\"selected\"" else ""#>Next Episode</option>
|
<option value="date" data-sort="$sbRoot/setPosterSortBy/?sort=date" #if $sickbeard.POSTER_SORTBY == "date" then "selected=\"selected\"" else ""#>Next Episode</option>
|
||||||
<option value="network" data-sort="$sbRoot/setPosterSortBy/?sort=network" #if $sickbeard.POSTER_SORTBY == "network" then "selected=\"selected\"" else ""#>Network</option>
|
<option value="network" data-sort="$sbRoot/setPosterSortBy/?sort=network" #if $sickbeard.POSTER_SORTBY == "network" then "selected=\"selected\"" else ""#>Network</option>
|
||||||
<option value="progress" data-sort="$sbRoot/setPosterSortBy/?sort=progress" #if $sickbeard.POSTER_SORTBY == "progress" then "selected=\"selected\"" else ""#>Progress</option>
|
<option value="progress" data-sort="$sbRoot/setPosterSortBy/?sort=progress" #if $sickbeard.POSTER_SORTBY == "progress" then "selected=\"selected\"" else ""#>Progress</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
<span style="margin:0 0 0 5px">Sort Order:
|
<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#">
|
<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" #if $sickbeard.POSTER_SORTDIR == 1 then "selected=\"selected\"" else ""#>Asc</option>
|
<option value="true" data-sort="$sbRoot/setPosterSortDir/?direction=1" #if $sickbeard.POSTER_SORTDIR == 1 then "selected=\"selected\"" else ""#>Asc</option>
|
||||||
<option value="false" data-sort="$sbRoot/setPosterSortDir/?direction=0" #if $sickbeard.POSTER_SORTDIR == 0 then "selected=\"selected\"" else ""#>Desc</option>
|
<option value="false" data-sort="$sbRoot/setPosterSortDir/?direction=0" #if $sickbeard.POSTER_SORTDIR == 0 then "selected=\"selected\"" else ""#>Desc</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
||||||
#end if
|
#end if
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -263,11 +265,11 @@
|
||||||
<div class="posterview">
|
<div class="posterview">
|
||||||
#for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList:
|
#for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList:
|
||||||
|
|
||||||
#if $curLoadingShow.show != None and $curLoadingShow.show in $sickbeard.showList:
|
#if $curLoadingShow.show != None and $curLoadingShow.show in $sickbeard.showList:
|
||||||
#continue
|
#continue
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#if $curLoadingShow.show == None:
|
#if $curLoadingShow.show == None:
|
||||||
<div class="show" data-name="0" data-date="010101" data-network="0" data-progress="101">
|
<div class="show" data-name="0" data-date="010101" data-network="0" data-progress="101">
|
||||||
<img alt="" title="$curLoadingShow.show_name" class="show-image" style="border-bottom: 1px solid #111;" src="$sbRoot/images/poster.png" />
|
<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-details">
|
||||||
|
@ -276,7 +278,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#end for
|
#end for
|
||||||
|
|
||||||
$myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
$myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
|
@ -335,8 +337,8 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
#set $den = 1
|
#set $den = 1
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#set $progressbar_percent = $nom * 100 / $den
|
#set $progressbar_percent = $nom * 100 / $den
|
||||||
|
|
||||||
#set $data_date = '6000000000.0'
|
#set $data_date = '6000000000.0'
|
||||||
#if $cur_airs_next:
|
#if $cur_airs_next:
|
||||||
#set $data_date = $time.mktime($sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network)).timetuple())
|
#set $data_date = $time.mktime($sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network)).timetuple())
|
||||||
|
@ -395,9 +397,9 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
#set $output_html = $display_status
|
#set $output_html = $display_status
|
||||||
#end if
|
#end if
|
||||||
#end if
|
#end if
|
||||||
$output_html
|
$output_html
|
||||||
#end if
|
#end if
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table width="100%" cellspacing="1" border="0" cellpadding="0">
|
<table width="100%" cellspacing="1" border="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -406,29 +408,28 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="show-table">
|
<td class="show-table">
|
||||||
#if $layout != 'simple':
|
#if $layout != 'simple':
|
||||||
#if $curShow.network:
|
#if $curShow.network:
|
||||||
<img class="show-network-image" src="$sbRoot/images/network/${curShow.network.replace(u"\u00C9",'e').lower()}.png" alt="$curShow.network" title="$curShow.network" />
|
<img class="show-network-image" src="$sbRoot/images/network/${curShow.network.replace(u"\u00C9",'e').lower()}.png" alt="$curShow.network" title="$curShow.network" />
|
||||||
#else:
|
#else:
|
||||||
<img class="show-network-image" src="$sbRoot/images/network/nonetwork.png" alt="No Network" title="No Network" />
|
<img class="show-network-image" src="$sbRoot/images/network/nonetwork.png" alt="No Network" title="No Network" />
|
||||||
#end if
|
#end if
|
||||||
#else:
|
#else:
|
||||||
$curShow.network
|
$curShow.network
|
||||||
#end if
|
#end if
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="show-table">
|
<td class="show-table">
|
||||||
#if $curShow.quality in $qualityPresets:
|
#if $curShow.quality in $qualityPresets:
|
||||||
<span class="show-quality">$qualityPresetStrings[$curShow.quality]</span>
|
<span class="show-quality">$qualityPresetStrings[$curShow.quality]</span>
|
||||||
#else:
|
#else:
|
||||||
<span class="show-quality">Custom</span>
|
<span class="show-quality">Custom</span>
|
||||||
#end if
|
#end if
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#end for
|
#end for
|
||||||
|
@ -439,7 +440,7 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
|
|
||||||
<table id="showListTable$curListType" class="tablesorter" cellspacing="1" border="0" cellpadding="0">
|
<table id="showListTable$curListType" class="tablesorter" cellspacing="1" border="0" cellpadding="0">
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="nowrap">Next Ep</th>
|
<th class="nowrap">Next Ep</th>
|
||||||
<th>Show</th>
|
<th>Show</th>
|
||||||
|
@ -450,37 +451,37 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="1" colspan="1" align="center"><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>
|
<th rowspan="1" colspan="6"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
#for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList:
|
#for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList:
|
||||||
|
|
||||||
#if $curLoadingShow.show != None and $curLoadingShow.show in $sickbeard.showList:
|
#if $curLoadingShow.show != None and $curLoadingShow.show in $sickbeard.showList:
|
||||||
#continue
|
#continue
|
||||||
#end if
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="center">(loading)</td>
|
|
||||||
<td></td>
|
|
||||||
<td>
|
|
||||||
#if $curLoadingShow.show == None:
|
|
||||||
Loading... ($curLoadingShow.show_name)
|
|
||||||
#else:
|
|
||||||
<a href="displayShow?show=$curLoadingShow.show.indexerid">$curLoadingShow.show.name</a>
|
|
||||||
#end if
|
#end if
|
||||||
</td>
|
|
||||||
<td></td>
|
<tr>
|
||||||
<td></td>
|
<td align="center">(loading)</td>
|
||||||
<td></td>
|
<td>
|
||||||
<td></td>
|
#if $curLoadingShow.show == None:
|
||||||
</tr>
|
Loading... ($curLoadingShow.show_name)
|
||||||
|
#else:
|
||||||
|
<a href="displayShow?show=$curLoadingShow.show.indexerid">$curLoadingShow.show.name</a>
|
||||||
|
#end if
|
||||||
|
</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
#end for
|
#end for
|
||||||
|
|
||||||
$myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
$myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
|
@ -531,58 +532,59 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
#set $den = 1
|
#set $den = 1
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#set $progressbar_percent = $nom * 100 / $den
|
#set $progressbar_percent = $nom * 100 / $den
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
#if $cur_airs_next
|
#if $cur_airs_next
|
||||||
#set $ldatetime = $sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network))
|
#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">$time.mktime($ldatetime.timetuple())</span></td>
|
<td align="center" class="nowrap"><div class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdate($ldatetime)</div><span class="sort_data">$time.mktime($ldatetime.timetuple())</span></td>
|
||||||
#else:
|
#else:
|
||||||
<td align="center" class="nowrap"></td>
|
<td align="center" class="nowrap"></td>
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#if $layout == 'small':
|
#if $layout == 'small':
|
||||||
<td class="tvShow">
|
<td class="tvShow">
|
||||||
<div class="imgsmallposter $layout">
|
<div class="imgsmallposter $layout">
|
||||||
<a href="$sbRoot/showPoster/?show=$curShow.indexerid&which=poster" rel="dialog" title="$curShow.name">
|
<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"/>
|
<img src="$sbRoot/showPoster/?show=$curShow.indexerid&which=poster_thumb" class="$layout" alt="$curShow.indexerid"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="$sbRoot/home/displayShow?show=$curShow.indexerid" style="vertical-align: middle;">$curShow.name</a>
|
<a href="$sbRoot/home/displayShow?show=$curShow.indexerid" style="vertical-align: middle;">$curShow.name</a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
#else if $layout == 'banner':
|
#else if $layout == 'banner':
|
||||||
<td>
|
<td>
|
||||||
<span style="display: none;">$curShow.name</span>
|
<span style="display: none;">$curShow.name</span>
|
||||||
<div class="imgbanner $layout">
|
<div class="imgbanner $layout">
|
||||||
<a href="$sbRoot/home/displayShow?show=$curShow.indexerid">
|
<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"/>
|
<img src="$sbRoot/showPoster/?show=$curShow.indexerid&which=banner" class="$layout" alt="$curShow.indexerid" title="$curShow.name"/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
#else if $layout == 'simple':
|
#else if $layout == 'simple':
|
||||||
<td class="tvShow"><a href="$sbRoot/home/displayShow?show=$curShow.indexerid">$curShow.name</a></td>
|
<td class="tvShow"><a href="$sbRoot/home/displayShow?show=$curShow.indexerid">$curShow.name</a></td>
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#if $layout != 'simple':
|
#if $layout != 'simple':
|
||||||
<td align="center">
|
<td align="center">
|
||||||
#if $curShow.network:
|
#if $curShow.network:
|
||||||
<img id="network" width="54" height="27" src="$sbRoot/images/network/${curShow.network.replace(u"\u00C9",'e').lower()}.png" alt="$curShow.network" title="$curShow.network" />
|
<span style="display: none;">$curShow.network</span>
|
||||||
#else:
|
<img id="network" width="54" height="27" src="$sbRoot/images/network/${curShow.network.replace(u"\u00C9",'e').lower()}.png" alt="$curShow.network" title="$curShow.network" />
|
||||||
<img id="network" width="54" height="27" src="$sbRoot/images/network/nonetwork.png" alt="No Network" title="No Network" />
|
#else:
|
||||||
#end if
|
<img id="network" width="54" height="27" src="$sbRoot/images/network/nonetwork.png" alt="No Network" title="No Network" />
|
||||||
|
#end if
|
||||||
</td>
|
</td>
|
||||||
#else:
|
#else:
|
||||||
<td>
|
<td>
|
||||||
$curShow.network
|
<span>$curShow.network</span>
|
||||||
</td>
|
</td>
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#if $curShow.quality in $qualityPresets:
|
#if $curShow.quality in $qualityPresets:
|
||||||
<td align="center"><span class="quality $qualityPresetStrings[$curShow.quality]">$qualityPresetStrings[$curShow.quality]</span></td>
|
<td align="center"><span class="quality $qualityPresetStrings[$curShow.quality]">$qualityPresetStrings[$curShow.quality]</span></td>
|
||||||
#else:
|
#else:
|
||||||
<td align="center"><span class="quality Custom">Custom</span></td>
|
<td align="center"><span class="quality Custom">Custom</span></td>
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
<td align="center"><span style="display: none;">$progressbar_percent</span><div id="progressbar$curShow.indexerid" style="position:relative;"></div>
|
<td align="center"><span style="display: none;">$progressbar_percent</span><div id="progressbar$curShow.indexerid" style="position:relative;"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
|
@ -608,12 +610,12 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td align="center">
|
<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" />
|
<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>
|
||||||
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
|
|
||||||
#set $display_status = $curShow.status
|
#set $display_status = $curShow.status
|
||||||
#if None is not $display_status
|
#if None is not $display_status
|
||||||
|
@ -626,7 +628,7 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
||||||
$display_status
|
$display_status
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
#end for
|
#end for
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue