2014-03-10 05:18:05 +00:00
#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.
2018-03-06 01:18:08 +00:00
#from sickbeard . common import ( Overview , statusStrings , ARCHIVED , FAILED , IGNORED , SKIPPED ,
SNATCHED, SNATCHED_ANY, UNKNOWN, WANTED, DOWNLOADED)
2015-05-07 00:36:40 +00:00
##
2015-02-25 23:19:52 +00:00
#set global $ title = ' Episode Overview '
#set global $ header = ' Episode Overview '
#set global $ sbPath = ' .. '
#set global $ topmenu = ' manage '
2015-05-07 00:36:40 +00:00
##
2014-03-10 05:18:05 +00:00
#import os . path
2015-02-25 23:19:52 +00:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_top.tmpl ' )
2014-09-30 22:20:37 +00:00
2015-11-07 16:24:28 +00:00
#if $ varExists ( ' header ' )
2014-03-10 05:18:05 +00:00
<h1 class="header"> $ header </h1>
2015-11-07 16:24:28 +00:00
#else
2014-03-10 05:18:05 +00:00
<h1 class="title"> $ title </h1>
#end if
2015-05-07 00:36:40 +00:00
##
2015-03-18 22:22:54 +00:00
#if not $ whichStatus or ( $ whichStatus and not $ ep_counts )
2015-05-07 00:36:40 +00:00
##
2015-03-18 22:22:54 +00:00
#if $ whichStatus :
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.
2018-03-06 01:18:08 +00:00
<h3>no episodes have status <span class="grey-text"> $ statusStrings [ $ whichStatus ].lower()</span></h3>
2015-03-18 22:22:54 +00:00
#end if
2014-03-10 05:18:05 +00:00
2015-03-18 22:22:54 +00:00
<form action=" $ sbRoot /manage/episodeStatuses" method="get">
2014-03-10 05:18:05 +00:00
2015-03-18 22:22:54 +00:00
Manage episodes with status
<select name="whichStatus" class="form-control form-control-inline input-sm" style="margin:0 10px">
2014-03-10 05:18:05 +00:00
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.
2018-03-06 01:18:08 +00:00
#for $ curStatus in [ $ SKIPPED , $ UNKNOWN , $ SNATCHED , $ WANTED , $ ARCHIVED , $ IGNORED , $ DOWNLOADED ] :
<option value=" $ curStatus " #echo ( ' ' , ' selected= " selected " ' ) [ $ curStatus == $ default_manage ] # > $ statusStrings [ $ curStatus ]</option>
2015-03-18 22:22:54 +00:00
#end for
2014-03-10 05:18:05 +00:00
2015-03-18 22:22:54 +00:00
</select>
<input class="btn btn-inline" type="submit" value="Manage">
</form>
2015-05-07 00:36:40 +00:00
##
2014-03-10 05:18:05 +00:00
#else
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.
2018-03-06 01:18:08 +00:00
#if $ whichStatus in ( $ ARCHIVED , $ IGNORED ) :
2015-03-18 22:22:54 +00:00
#set $ row_class = ' good '
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.
2018-03-06 01:18:08 +00:00
#elif $ whichStatus == $ SNATCHED :
2015-11-07 16:24:28 +00:00
#set $ row_class = ' snatched '
2015-03-18 22:22:54 +00:00
#else
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.
2018-03-06 01:18:08 +00:00
#set $ row_class = $ Overview . overviewStrings [ $ whichStatus ]
2015-03-18 22:22:54 +00:00
#end if
2014-03-10 05:18:05 +00:00
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.
2018-03-06 01:18:08 +00:00
#set $ statusList = [ $ ARCHIVED , $ IGNORED , $ SKIPPED ]
#if $ DOWNLOADED == $ whichStatus :
#set $ statusList = [ $ ARCHIVED ]
#elif $ ARCHIVED == $ whichStatus :
#set $ statusList = [ $ SKIPPED , $ DOWNLOADED , $ ARCHIVED , $ IGNORED ]
2017-11-27 19:35:20 +00:00
#end if
#if $ whichStatus in $ statusList
$ statusList . remove ( $ whichStatus )
2015-03-18 22:22:54 +00:00
#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.
2018-03-06 01:18:08 +00:00
#if $ whichStatus in $ SNATCHED_ANY
$ statusList . append ( $ FAILED )
2015-03-18 22:22:54 +00:00
#end if
2015-09-12 07:17:26 +00:00
<script type="text/javascript" src=" $ sbRoot /js/manageEpisodeStatuses.js?v= $ sbPID "></script>
2014-03-10 05:18:05 +00:00
2015-03-18 22:22:54 +00:00
<form action=" $ sbRoot /manage/changeEpisodeStatuses" method="post">
<input type="hidden" id="oldStatus" name="oldStatus" value=" $ whichStatus ">
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.
2018-03-06 01:18:08 +00:00
<h3><span class="grey-text"> $ ep_count </span> episode #echo ( ' s ' , ' ' ) [ 1 == $ ep_count ] # marked <span class="grey-text"> $ statusStrings [ $ whichStatus ].lower()</span> in <span class="grey-text"> ${ len ( $ sorted_show_ids ) } </span> show #echo ( ' s ' , ' ' ) [ 1 == len ( $ sorted_show_ids ) ] # </h3>
2015-03-18 22:22:54 +00:00
<input type="hidden" id="row_class" value=" $ row_class ">
<div class="form-group">
<span>Set checked shows/episodes to</span>
<select name="newStatus" 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.
2018-03-06 01:18:08 +00:00
<option value=" $ curStatus "> $ statusStrings [ $ curStatus ]</option>
2015-03-18 22:22:54 +00:00
#end for
</select>
<input class="btn btn-inline go" type="submit" value="Go">
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.
2018-03-06 01:18:08 +00:00
#if $ DOWNLOADED != $ whichStatus :
2015-03-18 22:22:54 +00:00
<span class="red-text" style="margin:0 0 0 30px">Override checked status to</span>
<select name="wantedStatus" 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.
2018-03-06 01:18:08 +00:00
<option value=" $ UNKNOWN ">nothing</option>
<option value=" $ WANTED "> $ statusStrings [ $ WANTED ]</option>
2015-03-18 22:22:54 +00:00
</select>
<input class="btn btn-inline go" type="submit" value="Go">
2017-11-27 19:35:20 +00:00
#end if
2015-03-18 22:22:54 +00:00
</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 expandAll" value="Expand All Shows">
</div>
<table class="sickbeardTable manageTable" cellspacing="1" border="0" cellpadding="0">
<thead></thead>
<tbody>
2015-04-21 10:18:55 +00:00
#set $ row = 0
2015-03-18 22:22:54 +00:00
#for $ cur_indexer_id in $ sorted_show_ids :
#if 0 == int ( $ never_counts [ $ cur_indexer_id ] )
#set $ output = ' %d ' % $ ep_counts [ $ cur_indexer_id ]
#elif $ ep_counts [ $ cur_indexer_id ] != $ never_counts [ $ cur_indexer_id ]
#set $ diff = $ ep_counts [ $ cur_indexer_id ] - $ never_counts [ $ cur_indexer_id ]
#set $ output = ' %d ' % $ diff + ( ' ' , ( ' episode %s plus %s never with an airdate ' % ( ( ' s ' , ' ' ) [ 1 == $ ep_counts [ $ cur_indexer_id ] ] , $ never_counts [ $ cur_indexer_id ] ) ) ) [ 0 < $ never_counts [ $ cur_indexer_id ] ]
#else
#set $ output = ' %s never with an airdate ' % ( ( ' all %s %s s ' , ' %s %s ' ) [ 1 == $ ep_counts [ $ cur_indexer_id ] ] % ( $ ep_counts [ $ cur_indexer_id ] , ' episode ' ) )
#end if
2015-04-21 10:18:55 +00:00
<tr id=" $ cur_indexer_id " class=" #echo ( ' odd ' , ' even ' ) [ $ row % 2 ] # #set $ row + = 1 # ">
2015-03-18 22:22:54 +00:00
<td><input type="checkbox" class="allCheck" id="allCheck- $ cur_indexer_id " name=" $ cur_indexer_id -all"></td>
<td colspan="2" style="width:100%;text-align:left">
<a class="whitelink" href=" $ sbRoot /home/displayShow?show= $ cur_indexer_id "> $ show_names [ $ cur_indexer_id ]</a> <span style="color: #999">( $ output )</span><input type="button" class="pull-right get_more_eps btn" id=" $ cur_indexer_id -more" value="Expand"><input type="button" class="pull-right get_less_eps btn" id=" $ cur_indexer_id -less" value="Collapse">
</td>
</tr>
#end for
</tbody>
</table>
</form>
2014-03-10 05:18:05 +00:00
#end if
2015-11-07 16:24:28 +00:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_bottom.tmpl ' )