Private GIT

Skip to content
Snippets Groups Projects
Commit d5c6e775 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Fix default episode status. Shows are added with set initial default status,

then the status is set to wanted for future episodes. User can then edit show
or mass edit, and change default status for future episodes, and it will be
honored by dailysearcher.
SiCKRAGETV/sickrage-issues#2000
SiCKRAGETV/sickrage-issues#1925
SiCKRAGETV/sickrage-issues#1483
SiCKRAGETV/sickrage-issues#1875
parent f0fba753
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@
</div>
<fieldset class="component-group-list">
<div class="field-pair">
<label class="cleafix" for="use_kodi">
<label class="clearfix" for="use_kodi">
<span class="component-title">Enable</span>
<span class="component-desc">
<input type="checkbox" class="enabler" name="use_kodi" id="use_kodi" #if $sickbeard.USE_KODI then "checked=\"checked\"" else ""# />
......
......@@ -63,16 +63,14 @@ This will <b>affect the episode show search</b> on nzb and torrent provider.<br
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_qualityChooser.tmpl")
<br />
<!--
<b>Default Episode Status:</b><br />
(this will set a default status of already aired episodes)<br />
(this will set the status for future episodes)<br />
<select name="defaultEpStatus" id="defaultEpStatusSelect" class="form-control form-control-inline input-sm">
#for $curStatus in [$WANTED, $SKIPPED, $ARCHIVED, $IGNORED]:
<option value="$curStatus" #if $curStatus == $show.default_ep_status then 'selected="selected"' else ''#>$statusStrings[$curStatus]</option>
#end for
</select><br />
<br />
-->
<b>Info Language:</b><br />
(this will only affect the language of the retrieved metadata file contents and episode filenames)<br />
......
......@@ -16,7 +16,7 @@
<div class="field-pair">
<label for="statusSelect">
<span class="component-title">Set the initial status<br /> of already aired episodes</span>
<span class="component-title">Status for previously aired episodes</span>
<span class="component-desc">
<select name="defaultStatus" id="statusSelect" class="form-control form-control-inline input-sm">
#for $curStatus in [$SKIPPED, $WANTED, $ARCHIVED, $IGNORED]:
......@@ -26,7 +26,6 @@
</span>
</label>
</div>
<div class="field-pair alt">
<label for="flatten_folders" class="clearfix">
<span class="component-title">Flatten Folders</span>
......
......@@ -99,7 +99,7 @@ class DailySearcher():
UpdateWantedList = 1
else:
logger.log(u"New episode " + ep.prettyName() + " airs today, setting status to WANTED")
ep.status = common.WANTED
ep.status = ep.show.default_ep_status
sql_l.append(ep.get_sql())
else:
......
......@@ -420,6 +420,9 @@ class QueueItemAdd(ShowQueueItem):
self.show.indexer):
self.show.scene = 1
# After initial add, set back to WANTED.
self.show.default_ep_status = WANTED
self.finish()
def _finishEarly(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment