#import sickbeard
#import datetime
Add choose to delete watched episodes from a list of played media at Kodi, Emby, and/or Plex.
Add episode watched state system that integrates with Kodi, Plex, and/or Emby, instructions at Shows/History/Layout/"Watched".
Add installable SickGear Kodi repository containing addon "SickGear Watched State Updater".
Change add Emby setting for watched state scheduler at Config/Notifications/Emby/"Update watched interval".
Change add Plex setting for watched state scheduler at Config/Notifications/Plex/"Update watched interval".
Add API cmd=sg.updatewatchedstate, instructions for use are linked to in layout "Watched" at /history.
Change history page table filter input values are saved across page refreshes.
Change history page table filter inputs, accept values like "dvd or web" to only display both.
Change history page table filter inputs, press 'ESC' key inside a filter input to reset it.
Add provider activity stats to Shows/History/Layout/ drop down.
Change move provider failures table from Manage/Media Search to Shows/History/Layout/Provider fails.
Change sort provider failures by most recent failure, and with paused providers at the top.
Change remove table form non-testing version 20007, that was reassigned.
7 years ago
#from sickbeard . common import ( Overview , statusStrings , ARCHIVED , FAILED , IGNORED , SKIPPED ,
SNATCHED, SNATCHED_ANY, UNKNOWN, WANTED, DOWNLOADED)
##
#set global $ title = ' Episode Overview '
#set global $ header = ' Episode Overview '
#set global $ sbPath = ' .. '
#set global $ topmenu = ' manage '
##
#import os . path
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_top.tmpl ' )
#if $ varExists ( ' header ' )
<h1 class="header"> $ header </h1>
#else
<h1 class="title"> $ title </h1>
#end if
##
#if not $ which_status or ( $ which_status and not $ ep_counts )
##
#if $ which_status :
<h3>no episodes have status <span class="grey-text"> $ statusStrings [ $ which_status ].lower()</span></h3>
#end if
<form action=" $ sbRoot /manage/episode-overview" method="get">
Manage episodes with status
<select name="which_status" class="form-control form-control-inline input-sm" style="margin:0 10px">
Add choose to delete watched episodes from a list of played media at Kodi, Emby, and/or Plex.
Add episode watched state system that integrates with Kodi, Plex, and/or Emby, instructions at Shows/History/Layout/"Watched".
Add installable SickGear Kodi repository containing addon "SickGear Watched State Updater".
Change add Emby setting for watched state scheduler at Config/Notifications/Emby/"Update watched interval".
Change add Plex setting for watched state scheduler at Config/Notifications/Plex/"Update watched interval".
Add API cmd=sg.updatewatchedstate, instructions for use are linked to in layout "Watched" at /history.
Change history page table filter input values are saved across page refreshes.
Change history page table filter inputs, accept values like "dvd or web" to only display both.
Change history page table filter inputs, press 'ESC' key inside a filter input to reset it.
Add provider activity stats to Shows/History/Layout/ drop down.
Change move provider failures table from Manage/Media Search to Shows/History/Layout/Provider fails.
Change sort provider failures by most recent failure, and with paused providers at the top.
Change remove table form non-testing version 20007, that was reassigned.
7 years ago
#for $ curStatus in [ $ SKIPPED , $ UNKNOWN , $ SNATCHED , $ WANTED , $ ARCHIVED , $ IGNORED , $ DOWNLOADED ] :
<option value=" $ curStatus " #echo ( ' ' , ' selected= " selected " ' ) [ $ curStatus == $ default_manage ] # > $ statusStrings [ $ curStatus ]</option>
#end for
</select>
<input class="btn btn-inline" type="submit" value="Manage">
</form>
##
#else
#if $ which_status in ( $ ARCHIVED , $ IGNORED ) :
#set $ row_class = ' good '
#elif $ which_status == $ SNATCHED :
#set $ row_class = ' snatched '
#else
#set $ row_class = $ Overview . overviewStrings [ $ which_status ]
#end if
Add choose to delete watched episodes from a list of played media at Kodi, Emby, and/or Plex.
Add episode watched state system that integrates with Kodi, Plex, and/or Emby, instructions at Shows/History/Layout/"Watched".
Add installable SickGear Kodi repository containing addon "SickGear Watched State Updater".
Change add Emby setting for watched state scheduler at Config/Notifications/Emby/"Update watched interval".
Change add Plex setting for watched state scheduler at Config/Notifications/Plex/"Update watched interval".
Add API cmd=sg.updatewatchedstate, instructions for use are linked to in layout "Watched" at /history.
Change history page table filter input values are saved across page refreshes.
Change history page table filter inputs, accept values like "dvd or web" to only display both.
Change history page table filter inputs, press 'ESC' key inside a filter input to reset it.
Add provider activity stats to Shows/History/Layout/ drop down.
Change move provider failures table from Manage/Media Search to Shows/History/Layout/Provider fails.
Change sort provider failures by most recent failure, and with paused providers at the top.
Change remove table form non-testing version 20007, that was reassigned.
7 years ago
#set $ statusList = [ $ ARCHIVED , $ IGNORED , $ SKIPPED ]
#if $ DOWNLOADED == $ which_status :
Add choose to delete watched episodes from a list of played media at Kodi, Emby, and/or Plex.
Add episode watched state system that integrates with Kodi, Plex, and/or Emby, instructions at Shows/History/Layout/"Watched".
Add installable SickGear Kodi repository containing addon "SickGear Watched State Updater".
Change add Emby setting for watched state scheduler at Config/Notifications/Emby/"Update watched interval".
Change add Plex setting for watched state scheduler at Config/Notifications/Plex/"Update watched interval".
Add API cmd=sg.updatewatchedstate, instructions for use are linked to in layout "Watched" at /history.
Change history page table filter input values are saved across page refreshes.
Change history page table filter inputs, accept values like "dvd or web" to only display both.
Change history page table filter inputs, press 'ESC' key inside a filter input to reset it.
Add provider activity stats to Shows/History/Layout/ drop down.
Change move provider failures table from Manage/Media Search to Shows/History/Layout/Provider fails.
Change sort provider failures by most recent failure, and with paused providers at the top.
Change remove table form non-testing version 20007, that was reassigned.
7 years ago
#set $ statusList = [ $ ARCHIVED ]
#elif $ ARCHIVED == $ which_status :
Add choose to delete watched episodes from a list of played media at Kodi, Emby, and/or Plex.
Add episode watched state system that integrates with Kodi, Plex, and/or Emby, instructions at Shows/History/Layout/"Watched".
Add installable SickGear Kodi repository containing addon "SickGear Watched State Updater".
Change add Emby setting for watched state scheduler at Config/Notifications/Emby/"Update watched interval".
Change add Plex setting for watched state scheduler at Config/Notifications/Plex/"Update watched interval".
Add API cmd=sg.updatewatchedstate, instructions for use are linked to in layout "Watched" at /history.
Change history page table filter input values are saved across page refreshes.
Change history page table filter inputs, accept values like "dvd or web" to only display both.
Change history page table filter inputs, press 'ESC' key inside a filter input to reset it.
Add provider activity stats to Shows/History/Layout/ drop down.
Change move provider failures table from Manage/Media Search to Shows/History/Layout/Provider fails.
Change sort provider failures by most recent failure, and with paused providers at the top.
Change remove table form non-testing version 20007, that was reassigned.
7 years ago
#set $ statusList = [ $ SKIPPED , $ DOWNLOADED , $ ARCHIVED , $ IGNORED ]
#end if
#if $ which_status in $ statusList
$ statusList . remove ( $ which_status )
#end if
<script type="text/javascript" src=" $ sbRoot /js/manageEpisodeStatuses.js?v= $ sbPID "></script>
<form action=" $ sbRoot /manage/change-episode-statuses" method="post">
<input type="hidden" id="old-status" name="old_status" value=" $ which_status ">
$ xsrf_form_html
<h3><span class="grey-text"> $ ep_count </span> episode #echo ( ' s ' , ' ' ) [ 1 == $ ep_count ] # marked <span class="grey-text"> $ statusStrings [ $ which_status ].lower()</span> in <span class="grey-text"> ${ len ( $ sorted_show_ids ) } </span> show #echo ( ' s ' , ' ' ) [ 1 == len ( $ sorted_show_ids ) ] # </h3>
<input type="hidden" id="row-class" value=" $ row_class ">
<div class="form-group">
<span>Set checked shows/episodes to</span>
<select id="set-status" name="new_status" class="form-control form-control-inline input-sm" style="margin:0 10px 0 5px">
#for $ curStatus in $ statusList :
Add choose to delete watched episodes from a list of played media at Kodi, Emby, and/or Plex.
Add episode watched state system that integrates with Kodi, Plex, and/or Emby, instructions at Shows/History/Layout/"Watched".
Add installable SickGear Kodi repository containing addon "SickGear Watched State Updater".
Change add Emby setting for watched state scheduler at Config/Notifications/Emby/"Update watched interval".
Change add Plex setting for watched state scheduler at Config/Notifications/Plex/"Update watched interval".
Add API cmd=sg.updatewatchedstate, instructions for use are linked to in layout "Watched" at /history.
Change history page table filter input values are saved across page refreshes.
Change history page table filter inputs, accept values like "dvd or web" to only display both.
Change history page table filter inputs, press 'ESC' key inside a filter input to reset it.
Add provider activity stats to Shows/History/Layout/ drop down.
Change move provider failures table from Manage/Media Search to Shows/History/Layout/Provider fails.
Change sort provider failures by most recent failure, and with paused providers at the top.
Change remove table form non-testing version 20007, that was reassigned.
7 years ago
<option value=" $ curStatus "> $ statusStrings [ $ curStatus ]</option>
#end for
</select>
<input class="btn btn-inline go" type="submit" value="Go">
#if $ DOWNLOADED != $ which_status :
<span class="red-text" style="margin:0 0 0 30px">Override checked status to</span>
<select name="wanted_status" class="form-control form-control-inline input-sm" style="margin:0 10px 0 5px">
Add choose to delete watched episodes from a list of played media at Kodi, Emby, and/or Plex.
Add episode watched state system that integrates with Kodi, Plex, and/or Emby, instructions at Shows/History/Layout/"Watched".
Add installable SickGear Kodi repository containing addon "SickGear Watched State Updater".
Change add Emby setting for watched state scheduler at Config/Notifications/Emby/"Update watched interval".
Change add Plex setting for watched state scheduler at Config/Notifications/Plex/"Update watched interval".
Add API cmd=sg.updatewatchedstate, instructions for use are linked to in layout "Watched" at /history.
Change history page table filter input values are saved across page refreshes.
Change history page table filter inputs, accept values like "dvd or web" to only display both.
Change history page table filter inputs, press 'ESC' key inside a filter input to reset it.
Add provider activity stats to Shows/History/Layout/ drop down.
Change move provider failures table from Manage/Media Search to Shows/History/Layout/Provider fails.
Change sort provider failures by most recent failure, and with paused providers at the top.
Change remove table form non-testing version 20007, that was reassigned.
7 years ago
<option value=" $ UNKNOWN ">nothing</option>
<option value=" $ WANTED "> $ statusStrings [ $ WANTED ]</option>
#if $ which_status in $ SNATCHED_ANY
<option value=" $ FAILED "> $ statusStrings [ $ FAILED ]</option>
#end if
</select>
<input class="btn btn-inline go" type="submit" value="Go">
#end if
</div>
<div class="form-group">
<input type="button" class="btn btn-xs selectAllShows" value="Select all">
<input type="button" class="btn btn-xs unselectAllShows" value="Clear all">
<input type="button" class="btn btn-xs expand-all" value="Expand all">
<input type="button" class="btn btn-xs collapse-all" value="Collapse all" style="display:none">
</div>
<style>
.manageTable tr{line-height:26px}
.recommend{margin-left:20px}
</style>
<table class="sickbeardTable manageTable" cellspacing="1" border="0" cellpadding="0">
<thead></thead>
<tbody>
#set $ row = 0
#for $ tvid_prodid in $ sorted_show_ids :
#if 0 == int ( $ never_counts [ $ tvid_prodid ] )
#set $ output = ' %d ' % $ ep_counts [ $ tvid_prodid ]
#elif $ ep_counts [ $ tvid_prodid ] != $ never_counts [ $ tvid_prodid ]
#set $ diff = $ ep_counts [ $ tvid_prodid ] - $ never_counts [ $ tvid_prodid ]
#set $ output = ' %d ' % $ diff + ( ' ' , ( ' episode %s plus %s never with an airdate ' % ( ( ' s ' , ' ' ) [ 1 == $ ep_counts [ $ tvid_prodid ] ] , $ never_counts [ $ tvid_prodid ] ) ) ) [ 0 < $ never_counts [ $ tvid_prodid ] ]
#else
#set $ output = ' %s never with an airdate ' % ( ( ' all %s %s s ' , ' %s %s ' ) [ 1 == $ ep_counts [ $ tvid_prodid ] ] % ( $ ep_counts [ $ tvid_prodid ] , ' episode ' ) )
#end if
<tr id=" $ tvid_prodid " class=" #echo ( ' odd ' , ' even ' ) [ $ row % 2 ] # #set $ row + = 1 # ">
<td><input type="checkbox" class="allCheck" id="allCheck- $ tvid_prodid " name=" $ tvid_prodid -all"></td>
<td colspan="2" style="width:100%;text-align:left">
<a class="whitelink" href=" $ sbRoot /home/view-show?tvid_prodid= $ tvid_prodid "> $ show_names [ $ tvid_prodid ]</a> <span style="color: #999">( $ output )</span><input type="button" class="pull-right get_more_eps btn" id=" $ tvid_prodid -more" value="Expand"><input type="button" class="pull-right get_less_eps btn" id=" $ tvid_prodid -less" value="Collapse">
</td>
</tr>
#end for
</tbody>
</table>
</form>
#end if
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_bottom.tmpl ' )