2014-03-10 05:18:05 +00:00
#import sickbeard
2015-03-23 02:16:33 +00:00
#import re
2014-03-10 05:18:05 +00:00
#from sickbeard import subtitles , sbdatetime , network_timezones
#import sickbeard . helpers
#from sickbeard . common import *
2014-11-09 02:49:38 +00:00
#from sickbeard . helpers import anon_url
2014-03-10 05:18:05 +00:00
#from lib import subliminal
#import os . path , os
#import datetime
2014-11-09 02:49:38 +00:00
2015-01-24 23:46:13 +00:00
#set global $ title = $ show . name
#set global $ topmenu = ' home '
#set $ exceptions_string = ' , ' . join ( $ show . exceptions )
2015-03-23 02:16:33 +00:00
#set global $ page_body_attr = ' display-show '
2015-01-24 23:46:13 +00:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_top.tmpl ' )
2014-03-10 05:18:05 +00:00
2014-07-03 23:51:39 +00:00
<script type="text/javascript" src=" $ sbRoot /js/lib/jquery.bookmarkscroll.js? $ sbPID "></script>
2014-03-10 05:18:05 +00:00
2015-03-23 02:16:33 +00:00
<input type="hidden" id="sbRoot" value=" $ sbRoot ">
2014-03-10 05:18:05 +00:00
<script type="text/javascript" src=" $ sbRoot /js/displayShow.js? $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/plotTooltip.js? $ sbPID "></script>
2014-05-26 18:07:10 +00:00
<script type="text/javascript" src=" $ sbRoot /js/sceneExceptionsTooltip.js? $ sbPID "></script>
2015-03-27 11:40:20 +00:00
#if $ sickbeard . USE_IMDB_INFO
2014-09-30 22:20:37 +00:00
<script type="text/javascript" src=" $ sbRoot /js/ratingTooltip.js? $ sbPID "></script>
2015-03-14 02:48:38 +00:00
#end if
2014-03-10 05:18:05 +00:00
<script type="text/javascript" src=" $ sbRoot /js/ajaxEpSearch.js? $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/ajaxEpSubtitles.js? $ sbPID "></script>
2015-03-23 01:05:13 +00:00
<script type="text/javascript" src=" $ sbRoot /js/lib/jquery.collapser.min.js? $ sbPID "></script>
2014-05-23 15:20:44 +00:00
<script type="text/javascript" charset="utf-8">
<!--
\$(document).ready(function(){
2015-03-14 02:48:38 +00:00
#set $ fuzzydate = ' airdate '
2015-03-27 11:40:20 +00:00
#if $ sickbeard . FUZZY_DATING
2014-05-23 15:20:44 +00:00
fuzzyMoment({
containerClass : '. ${ fuzzydate } ',
dateHasTime : false,
dateFormat : ' ${ sickbeard . DATE_PRESET } ',
timeFormat : ' ${ sickbeard . TIME_PRESET } ',
2015-03-14 02:48:38 +00:00
trimZero : #if $ sickbeard . TRIM_ZERO then ' true ' else ' false ' #
2014-05-23 15:20:44 +00:00
});
2015-03-14 02:48:38 +00:00
#end if
#raw
2014-06-03 23:40:05 +00:00
$('.addQTip').each(function () {
2014-09-30 22:20:37 +00:00
$(this).css({'cursor':'help', 'text-shadow':'0px 0px 0.5px #666'});
2014-06-03 23:40:05 +00:00
$(this).qtip({
show: {solo:true},
position: {viewport:$(window), my:'left center', adjust:{ y: -10, x: 2 }},
2015-03-23 01:05:13 +00:00
style: {classes:'qtip-rounded qtip-shadow qtip-maxwidth'}
2014-06-03 23:40:05 +00:00
});
});
2015-03-14 02:48:38 +00:00
#end raw
2015-03-27 11:40:20 +00:00
#if $ sickbeard . USE_IMDB_INFO
2014-09-30 22:20:37 +00:00
\$.fn.generateStars = function() {
return this.each(function(i,e){\$(e).html(\$('<span/>').width(\$(e).text()*12));});
};
\$('.imdbstars').generateStars();
2015-03-14 02:48:38 +00:00
#end if
2014-12-12 02:36:23 +00:00
TVShowList = [ ${ tvshow_id_csv } ]
2014-05-23 15:20:44 +00:00
});
//-->
</script>
2014-03-10 05:18:05 +00:00
2015-03-26 07:00:38 +00:00
<div class="displayshow-wrapper reg all">
2015-03-23 01:05:13 +00:00
<div class="background-container">
2015-03-23 02:16:33 +00:00
<div style="" class="background"></div>
2015-03-23 01:05:13 +00:00
</div>
2014-10-21 19:09:01 +00:00
<div class="pull-left form-inline">
2015-03-23 02:16:33 +00:00
Change show:
#set $ displayshowlist = [ ]
#set $ cur_sel = 0
#for $ curShowList in $ sortedShowLists
2015-03-14 02:48:38 +00:00
#set $ curShowType = $ curShowList [ 0 ]
#set $ curShowList = $ curShowList [ 1 ]
2015-03-27 11:40:20 +00:00
#if 1 < len ( $ sortedShowLists )
2015-03-23 02:16:33 +00:00
$ displayshowlist . append ('\t\t\t<optgroup label="%s">' % $ curShowType )
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 02:16:33 +00:00
#for $ curShow in $ curShowList
#set void = $ displayshowlist . append ( ' \t \t \t <option value= " %s " %s > %s </option> ' % ( $ curShow . indexerid , ( ' ' , ' selected= " selected " ' ) [ $ curShow == $ show ] , $ curShow . name ) )
#if $ curShow == $ show
#set $ cur_sel = len ( $ displayshowlist )
#end if
2015-03-14 02:48:38 +00:00
#end for
2015-03-23 02:16:33 +00:00
#if 1 < len ( $ sortedShowLists )
#set void = $ displayshowlist . append ( ' \t \t \t </optgroup> ' )
#end if
2015-03-14 02:48:38 +00:00
#end for
2015-03-23 02:16:33 +00:00
#set $ last_item = len ( $ displayshowlist )
#set $ prev_option = $ displayshowlist [ ( $ cur_sel - 2 , $ last_item - 1 ) [ 1 == $ cur_sel ] ]
#set $ next_option = $ displayshowlist [ ( $ cur_sel , 0 ) [ $ last_item == $ cur_sel ] ]
#set $ next_match = re . search ( r ' <opt[^>]+>(.*?)</opt ' , $ prev_option )
#set $ prev_match = re . search ( r ' <opt[^>]+>(.*?)</opt ' , $ next_option )
#set $ prev_title = ' Prev show ' if not $ next_match else ' Prev show, ' + $ next_match . group ( 1 )
#set $ next_title = ' Next show ' if not $ prev_match else ' Next show, ' + $ prev_match . group ( 1 )
#slurp
<div class="navShow"><img id="prevShow" src=" $ sbRoot /images/prev.png" alt="<<" title=" $ prev_title " class="addQTip" /></div>
<select id="pickShow" class="form-control form-control-inline input-sm">
#echo ' \n ' . join ( $ displayshowlist ) #
2015-03-14 02:48:38 +00:00
</select>
2015-03-23 02:16:33 +00:00
<div class="navShow"><img id="nextShow" src=" $ sbRoot /images/next.png" alt=">>" title=" $ next_title " class="addQTip" /></div>
2014-10-21 19:09:01 +00:00
</div>
2014-03-10 05:18:05 +00:00
2015-03-23 01:05:13 +00:00
<div class="clearfix" style="margin-bottom:15px"></div>
2014-09-30 22:20:37 +00:00
2015-03-27 11:40:20 +00:00
#if $ show_message
2015-03-23 01:05:13 +00:00
<div class="alert alert-info">
$ show_message
2014-09-30 22:20:37 +00:00
</div>
2015-03-23 01:05:13 +00:00
2015-03-27 11:40:20 +00:00
#end if
2015-03-23 01:05:13 +00:00
<div class="display-show-container">
<div id="posterCol" class="hidden-xs">
2015-03-23 02:16:33 +00:00
<a href=" $ sbRoot /showPoster/?show= $ show . indexerid &which=poster" rel="dialog" title="View poster for $ show . name ">
<img src=" $ sbRoot /showPoster/?show= $ show . indexerid &which=poster_thumb" class="tvshowImg" alt="" />
</a>
2015-03-23 01:05:13 +00:00
</div>
2015-03-23 02:16:33 +00:00
<div id="showCol" class="display-details">
2015-03-27 11:40:20 +00:00
#if int ( $ show . paused )
2015-03-23 01:05:13 +00:00
<div class="paused paused-highlight">
<i class="sgicon-pause paused-outline"></i>
</div>
#end if
<div id="details-wrapper">
<div id="details-right">
2015-03-27 11:40:20 +00:00
#if $ seasonResults
2015-03-14 02:48:38 +00:00
##There is a special/season_0?##
#set $ season_special = ( 0 , 1 ) [ 0 == int ( $ seasonResults [ - 1 ] [ ' season ' ] ) ]
2015-03-27 11:40:20 +00:00
#slurp
#if not $ sickbeard . DISPLAY_SHOW_SPECIALS and $ season_special
2015-03-14 02:48:38 +00:00
$ seasonResults . pop (-1)
#end if
2015-03-23 01:05:13 +00:00
<div>
2015-03-27 11:40:20 +00:00
#if $ season_special
2015-03-23 02:16:33 +00:00
<span class="details-title">Specials</span>
<span class="details-info"> #if sickbeard . DISPLAY_SHOW_SPECIALS # <a href=" #season - 0 " >View</a><span style= " margin : 0 10 px " >-</span> # end if #<a class="inner" href=" $ sbRoot /toggleDisplayShowSpecials/?show= $ show . indexerid "> #echo ( ' Show ' , ' Hide ' ) [ sickbeard . DISPLAY_SHOW_SPECIALS ] # </a></span>
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 01:05:13 +00:00
</div>
2015-03-26 12:24:03 +00:00
#set $ many_seasons = 12 < len ( $ seasonResults )
<div class="details-seasons">
<span class="details-title #echo ( ' ' , ' combo-seasons ' ) [ $ many_seasons ] # ">Season</span>
2015-03-23 02:16:33 +00:00
<span class="details-info">
2015-03-27 11:40:20 +00:00
#if $ many_seasons
2015-03-23 02:16:33 +00:00
<select id="seasonJump" class="form-control form-control-inline input-sm">
<option value="jump">Jump to season</option>
2015-03-27 11:40:20 +00:00
#for $ seasonNum in $ seasonResults
2015-03-23 02:16:33 +00:00
#if 0 == int ( $ seasonNum [ ' season ' ] )
#continue
#end if
<option value=" #season - $ seasonNum [ ' season ' ] " >Season $seasonNum[ ' season ' ]</option>
2015-03-14 02:48:38 +00:00
#end for
2015-03-23 02:16:33 +00:00
</select>
2015-03-14 02:48:38 +00:00
#else :
2015-03-27 11:40:20 +00:00
#for $ seasonNum in $ seasonResults
2015-03-23 02:16:33 +00:00
#if 0 == int ( $ seasonNum [ ' season ' ] )
#continue
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 02:16:33 +00:00
<a href=" #season - $ seasonNum [ ' season ' ] " >$seasonNum[ ' season ' ]</a>
2015-03-14 02:48:38 +00:00
#end for
#end if
2015-03-23 02:16:33 +00:00
</span>
2015-03-23 01:05:13 +00:00
</div>
2015-03-23 02:16:33 +00:00
#end if
2015-03-23 01:05:13 +00:00
</div>
2015-03-23 02:16:33 +00:00
2015-03-23 01:05:13 +00:00
<div id="details-top">
<div id="showtitle" data-showname=" $ show . name ">
<h2 class="title" id="scene_exception_ $ show . indexerid "><span> $ show . name </span></h2>
2015-03-23 02:16:33 +00:00
#if not $ sickbeard . USE_IMDB_INFO or not $ show . imdbid
2015-03-27 11:40:20 +00:00
#if $ show . genre
2015-03-26 12:24:03 +00:00
#for $ genre in $ show . genre [ 1 : - 1 ] . split ( ' | ' )
<span class="label"> $ genre </span>
2015-03-23 01:05:13 +00:00
#end for
#end if
2015-03-14 02:48:38 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ sickbeard . USE_IMDB_INFO and ' genres ' in $ show . imdb_info and ' ' != $ show . imdb_info [ ' genres ' ]
2015-03-23 01:05:13 +00:00
#for $ imdbgenre in $ show . imdb_info [ ' genres ' ] . split ( ' | ' )
2015-03-23 02:16:33 +00:00
<span class="label"><a href="<%= anon_url('http://www.imdb.com/search/title?at=0&genres=', imdbgenre.lower().replace('-','_'),'&sort=moviemeter,asc&title_type=tv_series') %>" target="_blank" title="View other popular $ imdbgenre shows on imdb.com"> $ imdbgenre . replace ('Sci-Fi','Science-Fiction')</a></span>
2015-03-23 01:05:13 +00:00
#end for
2014-11-02 11:18:59 +00:00
#end if
2015-03-23 01:05:13 +00:00
</div>
</div>
</div>
2015-03-14 02:48:38 +00:00
2015-03-23 01:05:13 +00:00
<div id="details-wrapper">
<div id="details-right">
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">Indexers</span>
<span class="details-info">
#set $ _show = $ show
#if $ sickbeard . USE_IMDB_INFO and $ show . imdbid
<a class="service" href="<%= anon_url('http://www.imdb.com/title/', _show.imdbid) %>" rel="noreferrer" onclick="window.open(this.href, '_blank'); return false;" title="Show IMDb info in new tab"><img alt="[imdb]" height="16" width="16" src=" $ sbRoot /images/imdb.png" /></a>
#end if
<a class="service" href="<%= anon_url(sickbeard.indexerApi(_show.indexer).config['show_url'], _show.indexerid) %>" onclick="window.open(this.href, '_blank'); return false;" title="Show $ sickbeard . indexerApi ( $ show . indexer ).name info in new tab"><img alt=" $ sickbeard . indexerApi ( $ show . indexer ).name" height="16" width="16" src=" $ sbRoot /images/ $ sickbeard . indexerApi ( $ show . indexer ).config['icon']" /></a>
2015-03-27 11:40:20 +00:00
#if $ xem_numbering or $ xem_absolute_numbering
2015-03-23 02:16:33 +00:00
<a class="service" href="<%= anon_url('http://thexem.de/search?q=', _show.name) %>" rel="noreferrer" onclick="window.open(this.href, '_blank'); return false;" title="Show XEM info in new tab"><img alt="[xem]" height="16" width="16" src=" $ sbRoot /images/xem.png" /></a>
#end if
</span>
</div>
2015-03-27 11:40:20 +00:00
#set $ startyear , $ runtime = ( None , None )
#if not $ sickbeard . USE_IMDB_INFO
#if not $ show . imdbid
#set $ runtime = $ show . runtime
#set $ startyear = $ show . startyear
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#elif $ sickbeard . USE_IMDB_INFO
#if ' year ' in $ show . imdb_info
2015-03-23 01:05:13 +00:00
#set $ runtime = $ show . imdb_info [ ' runtimes ' ]
#set $ startyear = $ show . imdb_info [ ' year ' ]
2015-03-14 02:48:38 +00:00
#end if
2014-11-09 02:49:38 +00:00
#end if
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">Premiered</span>
<span class="details-info">
2015-03-27 11:40:20 +00:00
#if None is not $ startyear # <span class="space-right"> $ startyear </span> #end if#
#if $ sickbeard . USE_IMDB_INFO and ' country_codes ' in $ show . imdb_info and ' ' != $ show . imdb_info [ ' country_codes ' ]
2015-03-23 01:05:13 +00:00
#for $ country in $ show . imdb_info [ ' country_codes ' ] . split ( ' | ' )
2015-03-23 02:16:33 +00:00
<img class="flag space-right" src=" $ sbRoot /images/flags/ ${ $ country } .png" width="16" height="11" />
2015-03-14 02:48:38 +00:00
#end for
#end if
2015-03-23 02:16:33 +00:00
</span>
</div>
2015-03-27 11:40:20 +00:00
#if $ show . airs
2015-03-23 02:16:33 +00:00
#set $ showairs = ' %s %s ' % ( $ show . airs . replace ( ' y ' , ' y, ' ) ,
('', ' <span class="red-text" style="font-weight:bold">(invalid timeformat)</span>')[not $ network_timezones . test_timeformat ( $ show . airs )])
<div>
<span class="details-title">Airs</span>
<span class="details-info"> $ showairs </span>
</div>
#end if
2015-03-27 11:40:20 +00:00
#if $ show . network
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">Network</span>
<span class="details-info"> $ show . network </span>
</div>
2015-03-14 02:48:38 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if None is not $ runtime
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">Runtime</span>
<span class="details-info"> $ runtime minutes</span>
</div>
2015-03-27 11:40:20 +00:00
#end if
#if ' ' != $ show . status
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">Status</span>
<span class="details-info"> $ show . status </span>
</div>
2015-03-16 15:38:38 +00:00
#end if
2015-03-23 02:16:33 +00:00
2015-03-23 01:05:13 +00:00
#if $ sickbeard . USE_IMDB_INFO and ' rating ' in $ show . imdb_info
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">IMDb rating</span>
<span class="details-info">
2015-03-23 01:05:13 +00:00
#if ' ' != $ show . imdb_info [ ' votes ' ]
#set $ rating_tip = ' %s of 10 stars<br /> %s votes ' % ( str ( $ show . imdb_info [ ' rating ' ] ) , str ( $ show . imdb_info [ ' votes ' ] ) )
2015-03-23 02:16:33 +00:00
<span class="imdbstars" qtip-content=" $ rating_tip "> $ show . imdb_info ['rating']</span>
2015-03-23 01:05:13 +00:00
#else
2015-03-23 02:16:33 +00:00
<span>No votes available</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-23 02:16:33 +00:00
</span>
</div>
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 02:16:33 +00:00
2015-03-14 02:48:38 +00:00
#set $ anyQualities , $ bestQualities = $ Quality . splitQuality ( int ( $ show . quality ) )
2015-03-27 11:40:20 +00:00
#if $ show . quality in $ qualityPresets
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">Quality</span>
<span class="details-info">
<span class="quality $ qualityPresetStrings [ $ show . quality ]"> $ qualityPresetStrings [ $ show . quality ]</span>
</span>
</div>
2015-03-14 02:48:38 +00:00
#else :
2015-03-27 11:40:20 +00:00
#if $ anyQualities
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">Initial</span>
<span class="details-info">
#echo ' , ' . join ( [ $ Quality . qualityStrings [ $ x ] for $ x in sorted ( $ anyQualities ) ] ) #
</span>
</div>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ bestQualities
2015-03-23 02:16:33 +00:00
<div>
<span class="details-title">Replace with</span>
<span class="details-info">
#echo ' , ' . join ( [ $ Quality . qualityStrings [ $ x ] for $ x in sorted ( $ bestQualities ) ] ) #
</span>
</div>
2015-03-14 02:48:38 +00:00
#end if
#end if
2015-03-23 01:05:13 +00:00
</div>
<div id="details-left">
2015-03-23 02:16:33 +00:00
<div class="details-plot #echo ( ' ' , ' no-plot ' ) [ ' ' == $ show . overview ] # ">
#echo ( ' No plot overview available ' , $ show . overview ) [ ' ' != $ show . overview ] #
2015-03-23 01:05:13 +00:00
</div>
2015-01-19 14:27:48 +00:00
2015-03-23 01:05:13 +00:00
<div id="details-bottom">
2015-03-23 02:16:33 +00:00
<span class="label addQTip" title="Info language, $ show . lang "><img src=" $ sbRoot /images/flags/ ${ show . lang } .png" width="16" height="11" alt="Info language, $ show . lang " title="Info language, $ show . lang " style="margin-top:-1px" /></span>
<span class="label addQTip" title="Location #echo ( ' no longer exists " style= " background-color: # 8f1515"', '"')[ $ showLoc [1]] #> $ showLoc [0]</span>
<span class="label addQTip" title="Size"> $ sickbeard . helpers . human (sickbeard.helpers.get_size( $ showLoc [0]))</span>
#set $ filecount = sum ( [ $ c for $ k , $ c in $ epCounts [ ' videos ' ] . items ( ) ] )
<span class="label addQTip" title="Videos"> $ filecount file $ sickbeard . helpers . maybe_plural ( $ filecount )</span>
#if $ show . paused
<span class="label label-paused">Paused</span>
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 02:16:33 +00:00
#if ( $ anyQualities + $ bestQualities ) and int ( $ show . archive_firstmatch )
<span class="label">Archive first match</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ show . exceptions
2015-03-23 02:16:33 +00:00
<span class="label addQTip" title=" $ exceptions_string . replace (', ', '<br />')">Scene names</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ show . rls_ignore_words
2015-03-23 02:16:33 +00:00
<span class="label addQTip" title=" #echo $ show . rls_ignore_words . replace ( ' , ' , ' <br /> ' ) # ">Ignored words</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ show . rls_require_words
2015-03-23 02:16:33 +00:00
<span class="label addQTip" title=" #echo $ show . rls_require_words . replace ( ' , ' , ' <br /> ' ) # ">Required words</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ show . flatten_folders or $ sickbeard . NAMING_FORCE_FOLDERS
2015-03-23 02:16:33 +00:00
<span class="label">Flat folders</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if int ( $ show . air_by_date )
2015-03-23 02:16:33 +00:00
<span class="label">Air by date</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if int ( $ show . dvdorder )
2015-03-23 02:16:33 +00:00
<span class="label">DVD order</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if int ( $ show . scene )
2015-03-23 02:16:33 +00:00
<span class="label">Scene numbering</span>
2015-03-14 02:48:38 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ sickbeard . USE_SUBTITLES and int ( $ show . subtitles )
2015-03-23 02:16:33 +00:00
<span class="label">Subtitles</span>
2015-03-14 02:48:38 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if int ( $ show . is_sports )
2015-03-23 02:16:33 +00:00
<span class="label">Sports</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if int ( $ show . is_anime )
2015-03-23 02:16:33 +00:00
<span class="label">Anime</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ bwl and $ bwl . whitelist
2015-03-23 02:16:33 +00:00
<span class="label addQTip" title=" #echo ' , ' . join ( $ bwl . whitelist ) . replace ( ' , ' , ' <br /> ' ) # ">Wanted group $ sickbeard . helpers . maybe_plural (len( $ bwl . whitelist ))</span>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
#if $ bwl and $ bwl . blacklist
2015-03-23 02:16:33 +00:00
<span class="label addQTip" title=" #echo ' , ' . join ( $ bwl . blacklist ) . replace ( ' , ' , ' <br /> ' ) # ">Unwanted group $ sickbeard . helpers . maybe_plural (len( $ bwl . blacklist ))</span>
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 01:05:13 +00:00
</div>
</div>
2014-10-21 19:09:01 +00:00
</div>
</div>
2014-09-30 22:20:37 +00:00
</div>
2015-03-14 02:48:38 +00:00
2014-10-21 19:09:01 +00:00
<div class="clearfix"></div>
2015-03-14 02:48:38 +00:00
2015-03-23 01:05:13 +00:00
<div class="pull-left">
<p style="margin-bottom:5px">Change selected episodes to</p>
2014-10-21 19:09:01 +00:00
<select id="statusSelect" class="form-control form-control-inline input-sm">
2015-03-27 11:40:20 +00:00
#for $ curStatus in [ $ WANTED , $ SKIPPED , $ ARCHIVED , $ IGNORED , $ FAILED ] + sorted ( $ Quality . DOWNLOADED )
#if $ DOWNLOADED == $ curStatus
2015-03-14 02:48:38 +00:00
#continue
#end if
2014-09-30 22:20:37 +00:00
<option value=" $ curStatus "> $ statusStrings [ $ curStatus ]</option>
2015-03-14 02:48:38 +00:00
#end for
2014-09-30 22:20:37 +00:00
</select>
2015-03-23 02:16:33 +00:00
<input type="hidden" id="showID" value=" $ show . indexerid ">
<input type="hidden" id="indexer" value=" $ show . indexer ">
<input class="btn btn-inline" type="button" id="changeStatus" value="Go">
2014-09-30 22:20:37 +00:00
</div>
2014-10-21 19:09:01 +00:00
<div class="pull-right clearfix" id="checkboxControls">
2015-03-23 02:16:33 +00:00
<div style="padding-bottom:5px">
<label for="wanted"><span class="wanted"><input type="checkbox" id="wanted" checked="checked"> Wanted: <b> $ epCounts [ $ Overview . WANTED ]</b></span></label>
<label for="qual"><span class="qual"><input type="checkbox" id="qual" checked="checked"> Low quality: <b> $ epCounts [ $ Overview . QUAL ]</b></span></label>
<label for="good"><span class="good"><input type="checkbox" id="good" checked="checked"> Downloaded: <b> $ epCounts [ $ Overview . GOOD ]</b></span></label>
<label for="skipped"><span class="skipped"><input type="checkbox" id="skipped" checked="checked"> Skipped: <b> $ epCounts [ $ Overview . SKIPPED ]</b></span></label>
<label for="snatched"><span class="snatched"><input type="checkbox" id="snatched" checked="checked"> Snatched: <b> $ epCounts [ $ Overview . SNATCHED ]</b></span></label>
2014-10-21 19:09:01 +00:00
</div>
2015-03-23 02:16:33 +00:00
2014-10-21 19:09:01 +00:00
<div class="pull-right" >
2015-03-23 02:16:33 +00:00
<button class="btn btn-xs seriesCheck">Select filtered episodes</button>
<button class="btn btn-xs clearAll">Clear all</button>
2014-10-21 19:09:01 +00:00
</div>
</div>
2014-03-10 05:18:05 +00:00
2015-03-23 01:05:13 +00:00
<div class="clearfix"></div>
2014-03-10 05:18:05 +00:00
#set $ curSeason = - 1
#set $ odd = 0
2015-03-23 02:16:33 +00:00
#set $ scene , $ scene_anime = ( False , False )
2015-03-27 11:40:20 +00:00
#if not $ show . air_by_date and not $ show . is_sports and not $ show . is_anime and $ show . is_scene
2015-03-23 02:16:33 +00:00
#set $ scene = True
2015-03-27 11:40:20 +00:00
#elif not $ show . air_by_date and not $ show . is_sports and $ show . is_anime and $ show . is_scene
2015-03-23 02:16:33 +00:00
#set $ scene_anime = True
#end if
2015-03-27 11:40:20 +00:00
#slurp
2015-03-23 02:16:33 +00:00
#if 0 == len ( $ sqlResults )
<div style="margin-top:50px"><h3>Episodes no longer exist for this show at the associated indexer</h3></div>
#else :
2015-03-27 11:40:20 +00:00
#for $ epResult in $ sqlResults
2015-03-23 02:16:33 +00:00
#set $ epStr = ' %s x %s ' % ( $ epResult [ ' season ' ] , $ epResult [ ' episode ' ] )
2015-03-27 11:40:20 +00:00
#if not $ epStr in $ epCats or ( 0 == int ( $ epResult [ ' season ' ] ) and not $ sickbeard . DISPLAY_SHOW_SPECIALS )
2015-03-14 02:48:38 +00:00
#continue
#end if
2015-03-23 02:16:33 +00:00
#slurp
2015-03-27 11:40:20 +00:00
#if $ curSeason != int ( $ epResult [ ' season ' ] )
#if 0 < = $ curSeason
2015-03-23 02:16:33 +00:00
</tbody>
</table>
2015-03-23 01:05:13 +00:00
#end if
2015-03-27 11:40:20 +00:00
2015-03-23 02:16:33 +00:00
<table class="sickbeardTable" cellspacing="0" border="0" cellpadding="0">
<tr id="season- $ epResult ['season']">
<th class="row-seasonheader" colspan="13">
<button id="showseason- $ epResult ['season']" type="button" class="btn btn-default pull-right #echo ' %s %s ' % ( ( ' ' , ' display-season ' ) [ int ( $ epResult [ ' season ' ] ) in $ display_seasons ] , ( ' ' , ' latest-season ' ) [ $ latest_season == int ( $ epResult [ ' season ' ] ) ] ) # " data-toggle="collapse" data-target=" #collapseSeason - $ epResult [ ' season ' ] " >Show episodes<span class= " sgicon - arrowdown " style= " margin - left : 4 px " ></span></button>
#set $ videos = ' none ' if $ epResult [ ' season ' ] not in $ epCounts [ ' videos ' ] else $ epCounts [ ' videos ' ] [ $ epResult [ ' season ' ] ]
#set $ archived = False if $ epResult [ ' season ' ] not in $ epCounts [ ' archived ' ] else $ epCounts [ ' archived ' ] [ $ epResult [ ' season ' ] ]
<h3><a name="season- $ epResult ['season']"></a> #if 0 == int ( $ epResult [ ' season ' ] ) then ' Specials ' else ' Season ' + str ( $ epResult [ ' season ' ] )
<span class="season-status"><b>[</b> <span class="footerhighlight"> $ videos </span> / <span class="footerhighlight"> $ epCounts ['totals'][ $ epResult ['season']]</span><span class="archived-count"> #echo ( ' ' , ' with <span class= " footerhighlight " > %s </span> archived ' % $ archived ) [ 0 < $ archived ] # </span> <b>]</b></span>
</h3>
2015-03-23 01:05:13 +00:00
</th>
</tr>
2015-03-23 02:16:33 +00:00
<tbody id="collapseSeason- $ epResult ['season']" class="collapse #echo ' %s %s ' % ( ( ' ' , ' display-season ' ) [ int ( $ epResult [ ' season ' ] ) in $ display_seasons ] , ( ' ' , ' latest-season ' ) [ $ latest_season == int ( $ epResult [ ' season ' ] ) ] ) # ">
2015-03-23 01:05:13 +00:00
2015-03-14 02:48:38 +00:00
<tr id="season- $ epResult ['season']-cols" class="seasoncols">
2015-03-23 02:16:33 +00:00
<th class="col-checkbox"><input type="checkbox" class="seasonCheck" id=" $ epResult ['season']"></th>
2015-03-14 02:48:38 +00:00
<th class="col-metadata">NFO</th>
<th class="col-metadata">TBN</th>
<th class="col-ep">Episode</th>
2015-03-27 11:40:20 +00:00
#if $ show . is_anime
2015-03-14 02:48:38 +00:00
<th class="col-ep">Absolute</th>
#end if
2015-03-27 11:40:20 +00:00
#if $ scene
2015-03-14 02:48:38 +00:00
<th class="col-ep">Scene</th>
#end if
2015-03-27 11:40:20 +00:00
#if $ scene_anime
2015-03-23 02:16:33 +00:00
<th class="col-ep">Scene absolute</th>
2015-03-14 02:48:38 +00:00
#end if
<th class="col-name">Name</th>
<th class="col-airdate">Airdate</th>
2015-03-27 11:40:20 +00:00
#if $ sickbeard . USE_SUBTITLES and $ show . subtitles
2015-03-14 02:48:38 +00:00
<th class="col-subtitles">Subtitles</th>
#end if
<th class="col-status">Status</th>
<th class="col-search">Search</th>
</tr>
#set $ curSeason = int ( $ epResult [ ' season ' ] )
2015-03-23 02:16:33 +00:00
#end if
2015-03-14 02:48:38 +00:00
#set $ epLoc = $ epResult [ ' location ' ]
2015-03-16 15:38:38 +00:00
#set never_aired = 0 < $ curSeason and 1 == int ( $ epResult [ ' airdate ' ] )
2015-03-23 01:05:13 +00:00
2015-03-17 17:51:17 +00:00
<tr class=" #echo ( $ Overview . overviewStrings [ $ epCats [ $ epStr ] ] , ' airdate-never ' ) [ $ never_aired ] # #echo ( ' ' , ' archived ' ) [ ARCHIVED == int ( $ epResult [ ' status ' ] ) ] # season- $ curSeason seasonstyle">
2015-03-23 01:05:13 +00:00
<td class="col-checkbox">
2015-03-16 15:38:38 +00:00
#if $ UNAIRED != int ( $ epResult [ ' status ' ] ) and not $ never_aired
2015-03-23 02:16:33 +00:00
<input type="checkbox" class="epCheck" id=" #echo $ epStr # " name=" #echo $ epStr # ">
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 01:05:13 +00:00
</td>
2015-03-23 02:16:33 +00:00
<td align="center"><img src=" $ sbRoot /images/ #if int ( $ epResult [ ' hasnfo ' ] ) then ' nfo.gif " alt= " Yes " title= " Yes ' else ' nfo-no.gif " alt= " No " title= " No ' # " width="23" height="11" /></td>
<td align="center"><img src=" $ sbRoot /images/ #if int ( $ epResult [ ' hastbn ' ] ) then ' tbn.gif " alt= " Yes " title= " Yes ' else ' tbn-no.gif " alt= " No " title= " No ' # " width="23" height="11" /></td>
2015-03-23 01:05:13 +00:00
2014-09-30 22:20:37 +00:00
<td align="center">
2015-03-27 11:40:20 +00:00
#if $ epLoc and $ show . _location and $ epLoc . lower ( ) . startswith ( $ show . _location . lower ( ) )
2015-03-14 02:48:38 +00:00
#set $ epLoc = $ epLoc [ len ( $ show . _location ) + 1 : ]
2015-03-27 11:40:20 +00:00
#elif $ epLoc and ( not $ epLoc . lower ( ) . startswith ( $ show . _location . lower ( ) ) or not $ show . _location )
2015-03-14 02:48:38 +00:00
#set $ epLoc = $ epLoc
#end if
2015-03-23 01:05:13 +00:00
2015-03-27 11:40:20 +00:00
#if ' ' != $ epLoc and None != $ epLoc
2015-03-23 01:05:13 +00:00
<span title=" $ epLoc - <strong> $ sickbeard . helpers . human ( $ epResult ['file_size'])</strong>" class="addQTip"> $ epResult ["episode"]</span>
2015-03-14 02:48:38 +00:00
#else
$ epResult ['episode']
#end if
2014-09-30 22:20:37 +00:00
</td>
2015-03-23 01:05:13 +00:00
2015-03-27 11:40:20 +00:00
#if $ show . is_anime
2015-03-14 02:48:38 +00:00
<td align="center"> $ epResult ['absolute_number']</td>
#end if
2014-03-10 05:18:05 +00:00
2015-03-27 11:40:20 +00:00
#if $ scene
2015-03-23 02:16:33 +00:00
#set $ dfltSeas , $ dfltEpis = ( 0 , 0 ) if ( $ epResult [ ' season ' ] , $ epResult [ ' episode ' ] ) not in $ xem_numbering else $ xem_numbering [ ( $ epResult [ ' season ' ] , $ epResult [ ' episode ' ] ) ]
2015-03-14 02:48:38 +00:00
<td align="center">
2015-03-23 02:16:33 +00:00
<input type="text" placeholder=" #echo ' %s x %s ' % ( $ dfltSeas , $ dfltEpis ) # " size="6" maxlength="8"
2015-03-14 02:48:38 +00:00
class="sceneSeasonXEpisode form-control input-scene" data-for-season=" $ epResult ['season']" data-for-episode=" $ epResult ['episode']"
2015-03-26 12:24:03 +00:00
id=" #echo ' sceneSeasonXEpisode_ %s _ %s _ %s ' % ( $ show . indexerid , $ epResult [ ' season ' ] , $ epResult [ ' episode ' ] ) # "
2015-03-14 02:48:38 +00:00
title="Change the value here if scene numbering differs from the indexer episode numbering"
2015-03-27 11:40:20 +00:00
#if ( $ epResult [ ' season ' ] , $ epResult [ ' episode ' ] ) in $ scene_numbering
2015-03-23 02:16:33 +00:00
#set $ scSeas , $ scEpis = $ scene_numbering [ ( $ epResult [ ' season ' ] , $ epResult [ ' episode ' ] ) ]
value=" #echo ' %s x %s ' % ( $ scSeas , $ scEpis ) # "
2015-03-14 02:48:38 +00:00
#else
2015-03-23 02:16:33 +00:00
value=""
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 02:16:33 +00:00
style="padding:0; text-align:center; max-width:60px">
2015-03-23 01:05:13 +00:00
</td>
2015-03-27 11:40:20 +00:00
#elif $ scene_anime
2015-03-23 02:16:33 +00:00
#set $ dfltAbsolute = 0 if $ epResult [ ' absolute_number ' ] not in $ xem_absolute_numbering else $ xem_absolute_numbering [ $ epResult [ ' absolute_number ' ] ]
2015-03-23 01:05:13 +00:00
<td align="center">
2015-03-23 02:16:33 +00:00
<input type="text" placeholder=" $ dfltAbsolute " size="6" maxlength="8"
2015-03-14 02:48:38 +00:00
class="sceneAbsolute form-control input-scene" data-for-absolute=" $ epResult ['absolute_number']"
2015-03-26 12:24:03 +00:00
id=" #echo ' sceneAbsolute_ %s _ %s ' % ( $ show . indexerid , $ epResult [ ' absolute_number ' ] ) # "
2015-03-14 02:48:38 +00:00
title="Change the value here if scene absolute numbering differs from the indexer absolute numbering"
2015-03-27 11:40:20 +00:00
#if $ epResult [ ' absolute_number ' ] in $ scene_absolute_numbering
2015-03-23 02:16:33 +00:00
value=" $ scene_absolute_numbering [ $ epResult ['absolute_number']]"
2015-03-14 02:48:38 +00:00
#else
2015-03-23 02:16:33 +00:00
value=""
2015-03-14 02:48:38 +00:00
#end if
2015-03-23 02:16:33 +00:00
style="padding:0; text-align:center; max-width:60px" />
2015-03-14 02:48:38 +00:00
</td>
#end if
2014-09-30 22:20:37 +00:00
2014-10-21 19:09:01 +00:00
<td class="col-name">
2015-03-23 02:16:33 +00:00
<img src=" $ sbRoot /images/info32.png" width="16" height="16" alt="" class="plotInfo #echo ' %s " /> ' % \
('None', ('" id="plot_info_%s_%s_%s' % ( $ show . indexerid , $ epResult ['season'], $ epResult ['episode'])))[None is not $ epResult ['description'] and '' != $ epResult ['description']] #
2015-03-14 02:48:38 +00:00
$ epResult ['name']
2014-09-30 22:20:37 +00:00
</td>
2015-03-23 02:16:33 +00:00
2014-10-21 19:09:01 +00:00
<td class="col-airdate">
2015-03-14 02:48:38 +00:00
<span class=" ${ fuzzydate } "> #if 1 == int ( $ epResult [ ' airdate ' ] ) then ' never ' else $ sbdatetime . sbdatetime . sbfdate ( $ sbdatetime . sbdatetime . convert_to_setting ( $ network_timezones . parse_date_time ( $ epResult [ ' airdate ' ] , $ show . airs , $ show . network ) ) ) # </span>
2014-09-30 22:20:37 +00:00
</td>
2015-03-23 01:05:13 +00:00
2015-03-27 11:40:20 +00:00
#if $ sickbeard . USE_SUBTITLES and $ show . subtitles
2015-03-14 02:48:38 +00:00
<td class="col-subtitles" align="center">
2015-03-27 11:40:20 +00:00
#if $ epResult [ ' subtitles ' ]
#for $ sub_lang in subliminal . language . language_list ( $ epResult [ ' subtitles ' ] . split ( ' , ' ) )
2015-03-14 02:48:38 +00:00
#if ' ' != sub_lang . alpha2
<img src=" $ sbRoot /images/flags/ ${ sub_lang . alpha2 } .png" width="16" height="11" alt=" ${ sub_lang } " />
2015-03-23 01:05:13 +00:00
#end if
#end for
#end if
2015-03-14 02:48:38 +00:00
</td>
#end if
2015-03-23 01:05:13 +00:00
2015-03-14 02:48:38 +00:00
#set $ curStatus , $ curQuality = $ Quality . splitCompositeStatus ( int ( $ epResult [ ' status ' ] ) )
2015-03-27 11:40:20 +00:00
#if Quality . NONE != $ curQuality
2015-03-14 02:48:38 +00:00
<td class="col-status"> $ statusStrings [ $ curStatus ] <span class="quality $ Quality . qualityStrings [ $ curQuality ].replace('720p','HD720p').replace('1080p','HD1080p').replace('RawHD TV', 'RawHD').replace('HD TV', 'HD720p')"> $ Quality . qualityStrings [ $ curQuality ]</span></td>
2015-03-23 01:05:13 +00:00
#else :
2015-03-14 02:48:38 +00:00
<td class="col-status"> $ statusStrings [ $ curStatus ]</td>
#end if
2015-03-23 02:16:33 +00:00
2014-10-21 19:09:01 +00:00
<td class="col-search">
2015-03-27 11:40:20 +00:00
#if 0 != int ( $ epResult [ ' season ' ] )
#if ( int ( $ epResult [ ' status ' ] ) in $ Quality . SNATCHED or int ( $ epResult [ ' status ' ] ) in $ Quality . DOWNLOADED ) and $ sickbeard . USE_FAILED_DOWNLOADS
2015-03-23 02:16:33 +00:00
<a class="epRetry" id=" #echo $ epStr # " name=" #echo $ epStr # " href="retryEpisode?show= $ show . indexerid &season= $ epResult ['season']&episode= $ epResult ['episode']"><img src=" $ sbRoot /images/search16.png" height="16" alt="retry" title="Retry download" /></a>
2015-03-14 02:48:38 +00:00
#else :
2015-03-23 02:16:33 +00:00
<a class="epSearch" id=" #echo $ epStr # " name=" #echo $ epStr # " href="searchEpisode?show= $ show . indexerid &season= $ epResult ['season']&episode= $ epResult ['episode']"><img src=" $ sbRoot /images/search16.png" width="16" height="16" alt="search" title="Manual search" /></a>
2015-03-14 02:48:38 +00:00
#end if
#end if
2015-03-23 01:05:13 +00:00
2015-03-14 02:48:38 +00:00
#if $ sickbeard . USE_SUBTITLES and $ show . subtitles and len ( set ( str ( $ epResult [ ' subtitles ' ] ) . split ( ' , ' ) ) . intersection ( set ( $ subtitles . wantedLanguages ( ) ) ) ) < len ( $ subtitles . wantedLanguages ( ) ) and $ epResult [ ' location ' ]
2015-03-23 02:16:33 +00:00
<a class="epSubtitlesSearch" href="searchEpisodeSubtitles?show= $ show . indexerid &season= $ epResult ['season']&episode= $ epResult ['episode']"><img src=" $ sbRoot /images/closed_captioning.png" height="16" alt="search subtitles" title="Search subtitles" /></a>
2015-03-14 02:48:38 +00:00
#end if
2014-09-30 22:20:37 +00:00
</td>
</tr>
2015-03-14 02:48:38 +00:00
#end for
2015-03-23 01:05:13 +00:00
</tbody>
2014-03-10 05:18:05 +00:00
</table>
2015-03-23 02:16:33 +00:00
#end if
2014-03-10 05:18:05 +00:00
2015-03-23 02:16:33 +00:00
<script type="text/javascript" charset="utf-8">
#raw
$(document).ready(function(){
$('.details-plot').collapser({
2015-03-23 01:05:13 +00:00
mode: 'lines',
truncate: 10,
2015-03-23 02:16:33 +00:00
showText: '<span class="pull-right moreless"><i class="sgicon-arrowdown" style="margin-right:2px"></i>more</span>',
hideText: '<span class="pull-right moreless"><i class="sgicon-arrowup" style="margin-right:2px"></i>less</span>',
2015-03-23 01:05:13 +00:00
showClass: 'show-class'
});
2015-03-23 02:16:33 +00:00
$('button[data-target*="collapseSeason-"]').each(function(k,v){
var tbl = $($(this).attr('data-target')),
btn = $(' #' + $(this).attr('id'));
tbl.on('hide.bs.collapse', function () { btn.html('Show episodes<span class="sgicon-arrowdown" style="margin-left:4px"></span>'); })
tbl.on('show.bs.collapse', function () { btn.html('Hide episodes<span class="sgicon-arrowup" style="margin-left:4px"></span>'); })
});
#end raw
2015-03-23 01:05:13 +00:00
});
</script>
2015-03-23 02:16:33 +00:00
</div>
2015-01-24 23:46:13 +00:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_bottom.tmpl ' )