mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-15 22:05:02 -05:00
Merge pull request #1303 from abeloin/patch-quality_low_backlog
Fix unknown quality
This commit is contained in:
commit
8846a60552
@ -46,22 +46,25 @@
|
|||||||
#end if
|
#end if
|
||||||
#set $totalWanted = 0
|
#set $totalWanted = 0
|
||||||
#set $totalQual = 0
|
#set $totalQual = 0
|
||||||
|
#set $totalSnatched = 0
|
||||||
|
|
||||||
#for $curShow in $sickbeard.showList:
|
#for $curShow in $sickbeard.showList:
|
||||||
#set $totalWanted = $totalWanted + $showCounts[$curShow.indexerid][$Overview.WANTED]
|
#set $totalWanted = $totalWanted + $showCounts[$curShow.indexerid][$Overview.WANTED]
|
||||||
#set $totalQual = $totalQual + $showCounts[$curShow.indexerid][$Overview.QUAL]
|
#set $totalQual = $totalQual + $showCounts[$curShow.indexerid][$Overview.QUAL]
|
||||||
|
#set $totalSnatched = $totalSnatched + $showCounts[$curShow.indexerid][$Overview.SNATCHED]
|
||||||
#end for
|
#end for
|
||||||
|
|
||||||
<div class="h2footer pull-right">
|
<div class="h2footer pull-right">
|
||||||
<span class="listing-key wanted">Wanted: <b>$totalWanted</b></span>
|
<span class="listing-key wanted">Wanted: <b>$totalWanted</b></span>
|
||||||
<span class="listing-key qual">Low Quality: <b>$totalQual</b></span>
|
<span class="listing-key qual">Low Quality: <b>$totalQual</b></span>
|
||||||
|
<span class="listing-key snatched">Snatched: <b>$totalSnatched</b></span>
|
||||||
</div><br/>
|
</div><br/>
|
||||||
|
|
||||||
<div class="float-left">
|
<div class="float-left">
|
||||||
Jump to Show
|
Jump to Show
|
||||||
<select id="pickShow" class="form-control form-control-inline input-sm">
|
<select id="pickShow" class="form-control form-control-inline input-sm">
|
||||||
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
|
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
|
||||||
#if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] != 0:
|
#if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] + $showCounts[$curShow.indexerid][$Overview.SNATCHED] != 0:
|
||||||
<option value="$curShow.indexerid">$curShow.name</option>
|
<option value="$curShow.indexerid">$curShow.name</option>
|
||||||
#end if
|
#end if
|
||||||
#end for
|
#end for
|
||||||
@ -72,7 +75,7 @@ Jump to Show
|
|||||||
|
|
||||||
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
|
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
|
||||||
|
|
||||||
#if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] == 0:
|
#if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] + $showCounts[$curShow.indexerid][$Overview.SNATCHED] == 0:
|
||||||
#continue
|
#continue
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
@ -82,6 +85,7 @@ Jump to Show
|
|||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<span class="listing-key wanted">Wanted: <b>$showCounts[$curShow.indexerid][$Overview.WANTED]</b></span>
|
<span class="listing-key wanted">Wanted: <b>$showCounts[$curShow.indexerid][$Overview.WANTED]</b></span>
|
||||||
<span class="listing-key qual">Low Quality: <b>$showCounts[$curShow.indexerid][$Overview.QUAL]</b></span>
|
<span class="listing-key qual">Low Quality: <b>$showCounts[$curShow.indexerid][$Overview.QUAL]</b></span>
|
||||||
|
<span class="listing-key snatched">Snatched: <b>$showCounts[$curShow.indexerid][$Overview.SNATCHED]</b></span>
|
||||||
<a class="btn btn-inline forceBacklog" href="$sbRoot/manage/backlogShow?indexer_id=$curShow.indexerid"><i class="icon-play-circle icon-white"></i> Force Backlog</a>
|
<a class="btn btn-inline forceBacklog" href="$sbRoot/manage/backlogShow?indexer_id=$curShow.indexerid"><i class="icon-play-circle icon-white"></i> Force Backlog</a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -97,7 +101,7 @@ Jump to Show
|
|||||||
#continue
|
#continue
|
||||||
#end try
|
#end try
|
||||||
|
|
||||||
#if $overview not in ($Overview.QUAL, $Overview.WANTED):
|
#if $overview not in ($Overview.QUAL, $Overview.WANTED, $Overview.SNATCHED):
|
||||||
#continue
|
#continue
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
|
@ -1273,9 +1273,9 @@ class TVShow(object):
|
|||||||
|
|
||||||
if epStatus == FAILED:
|
if epStatus == FAILED:
|
||||||
return Overview.WANTED
|
return Overview.WANTED
|
||||||
if curQuality == Quality.UNKNOWN:
|
if epStatus == DOWNLOADED and curQuality == Quality.UNKNOWN:
|
||||||
return Overview.QUAL
|
return Overview.QUAL
|
||||||
elif epStatus in (SNATCHED_BEST, SNATCHED, SNATCHED_PROPER ) and curQuality == maxBestQuality:
|
elif epStatus in (SNATCHED, SNATCHED_PROPER, SNATCHED_BEST):
|
||||||
return Overview.SNATCHED
|
return Overview.SNATCHED
|
||||||
# if they don't want re-downloads then we call it good if they have anything
|
# if they don't want re-downloads then we call it good if they have anything
|
||||||
elif maxBestQuality == None:
|
elif maxBestQuality == None:
|
||||||
|
Loading…
Reference in New Issue
Block a user