Add failed status indication to Snatched column of History compact and add archived status release groups to Downloaded column of History compact.

This commit is contained in:
JackDandy 2015-04-17 02:08:50 +01:00
parent e8a1303ef7
commit e3bfda6d46
3 changed files with 14 additions and 7 deletions

View file

@ -11,6 +11,8 @@
* Update chardet packages 2.2.1 to 2.3.0 (ff40135)
* Update cachecontrol library 0.9.3 to 0.11.2
* Change prevent wasted API hit where show and exception names create a duplicate sanitised year
* Add FAILED status indication to Snatched column of History compact
* Add ARCHIVED status release groups to Downloaded column of History compact
* Add ToTV provider
* Fix Backlog scheduler initialization and change backlog frequency from minutes to days
* Change to consolidate and tidy some provider code

View file

@ -2004,8 +2004,13 @@ history.tmpl
text-align:center
}
#historyTable td.provider img{
margin-right:3px
#historyTable td.provider span{
padding:0 2px
}
#historyTable td.provider span.fail img{
opacity:0.5;
filter:alpha(opacity=50)
}
#historyTable td img,

View file

@ -192,17 +192,17 @@
#if $curStatus in [SNATCHED, FAILED]
#set $provider = $providers.getProviderClass($generic.GenericProvider.makeID($action['provider']))
#if None is not $provider
#set $prov_list += ['<img class="help" src="%s/images/providers/%s" width="16" height="16" alt="%s" title="%s%s.. %s: %s" />'\
% ($sbRoot, $provider.imageName(), $provider.name, $order,
'th' if str($order)[-1] not in $ordinal_indicators else $ordinal_indicators[str($order)[-1]],
#set $prov_list += ['<span%s><img class="help" src="%s/images/providers/%s" width="16" height="16" alt="%s" title="%s.. %s: %s" /></span>'\
% (('', ' class="fail"')[FAILED == $curStatus], $sbRoot, $provider.imageName(), $provider.name,
('%s%s' % ($order, 'th' if $order in [11, 12, 13] or str($order)[-1] not in $ordinal_indicators else $ordinal_indicators[str($order)[-1]]), 'Snatch failed')[FAILED == $curStatus],
$provider.name, $basename)]
#set $order += 1
#set $order += (0, 1)[SNATCHED == $curStatus]
#else
#set $prov_list += ['<img src="%s/images/providers/missing.png" width="16" height="16" alt="missing provider" title="missing provider" />'\
% $sbRoot]
#end if
#end if
#if DOWNLOADED == $curStatus
#if $curStatus in [DOWNLOADED, ARCHIVED]
#set $match = $re.search('\-(\w+)\.\w{3}\Z', $basename)
#set $non_scene_note = ''
#if not $match