Private GIT

Skip to content
Snippets Groups Projects
Commit d7d8c987 authored by Alexandre Beloin's avatar Alexandre Beloin
Browse files

Show currently running task in show queue

parent a50671dc
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
\$(document).ready(function() { \$(document).ready(function() {
\$("#queueStatusTable").tablesorter({ \$("#queueStatusTable").tablesorter({
widgets: ['saveSort', 'zebra'], widgets: ['saveSort', 'zebra'],
sortList: [[3,0], [4,0]] sortList: [[3,0], [4,0], [2,1]]
}); });
}); });
</script> </script>
...@@ -131,6 +131,38 @@ ...@@ -131,6 +131,38 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
#if $sickbeard.showQueueScheduler.action.currentItem is not None
<tr>
#try
#set showindexerid = $sickbeard.showQueueScheduler.action.currentItem.show.indexerid
<td>$showindexerid</td>
#except Exception
<td></td>
#end try
#try
#set showname = $sickbeard.showQueueScheduler.action.currentItem.show.name
<td>$showname</td>
#except Exception
#if $sickbeard.showQueueScheduler.action.currentItem.action_id == $ShowQueueActions.ADD
<td>$sickbeard.showQueueScheduler.action.currentItem.showDir</td>
#else
<td></td>
#end if
#end try
<td>$sickbeard.showQueueScheduler.action.currentItem.inProgress</td>
#if $sickbeard.showQueueScheduler.action.currentItem.priority == 10
<td>LOW</td>
#elif $sickbeard.showQueueScheduler.action.currentItem.priority == 20
<td>NORMAL</td>
#elif $sickbeard.showQueueScheduler.action.currentItem.priority == 30
<td>HIGH</td>
#else
<td>$sickbeard.showQueueScheduler.action.currentItem.priority</td>
#end if
<td>$sickbeard.showQueueScheduler.action.currentItem.added.strftime("%Y-%m-%d %H:%M:%S")</td>
<td>$ShowQueueActions.names[$sickbeard.showQueueScheduler.action.currentItem.action_id]</td>
</tr>
#end if
#for item in $sickbeard.showQueueScheduler.action.queue #for item in $sickbeard.showQueueScheduler.action.queue
<tr> <tr>
#try #try
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment