Fix setting items to Failed on Manage/Episode Status page.

Fix history page provider icons in Layout Detailed.
This commit is contained in:
JackDandy 2017-12-06 18:13:02 +00:00
parent 2a63ab9c78
commit c3a4e12746
2 changed files with 3 additions and 3 deletions

View file

@ -143,7 +143,7 @@
#end if
#else
#if 0 < $hItem['provider']
#if $curStatus in [$SNATCHED_ANY, $FAILED]
#if $curStatus in $SNATCHED_ANY + [$FAILED]
#set $provider = $providers.getProviderClass($generic.GenericProvider.make_id($hItem['provider']))
#if None is not $provider
<img src="$sbRoot/images/providers/<%= provider.image_name() %>" width="16" height="16" /><span>$provider.name</span>

View file

@ -2073,7 +2073,7 @@ class Home(MainHandler):
logger.log(u'Attempting to set status on episode %s to %s' % (curEp, status), logger.DEBUG)
ep_obj = showObj.getEpisode(*tuple(curEp.split('x')))
ep_obj = showObj.getEpisode(*tuple([int(x) for x in curEp.split('x')]))
if ep_obj is None:
return self._genericMessage('Error', 'Episode couldn\'t be retrieved')
@ -2155,7 +2155,7 @@ class Home(MainHandler):
sickbeard.searchQueueScheduler.action.add_item(cur_failed_queue_item)
msg += '<li>Season %s</li>' % season
logger.log(u'Retrying search for %s season %s because some eps were set to failed',
logger.log(u'Retrying search for %s season %s because some eps were set to failed' %
(showObj.name, season))
msg += '</ul>'