Browse Source

Show DirectUnpack progress the same as Unpack progress: xx/xx

tags/2.2.0Beta1
Safihre 8 years ago
parent
commit
ecf16f6201
  1. 2
      interfaces/Glitter/templates/include_queue.tmpl
  2. 2
      sabnzbd/directunpacker.py

2
interfaces/Glitter/templates/include_queue.tmpl

@ -96,7 +96,7 @@
</small>
<!-- /ko -->
<div class="name-icons direct-unpack hover-button" data-bind="visible: direct_unpack">
<span class="glyphicon glyphicon-compressed "></span> <span data-bind="text: direct_unpack">5</span>
<span class="glyphicon glyphicon-compressed"></span> <span data-bind="text: direct_unpack"></span>
</div>
</div>
<form data-bind="submit: editingNameSubmit">

2
sabnzbd/directunpacker.py

@ -342,7 +342,7 @@ class DirectUnpacker(threading.Thread):
if self.cur_setname and self.cur_setname in self.total_volumes:
# This won't work on obfuscated posts
if self.total_volumes[self.cur_setname] > self.cur_volume and self.cur_volume:
return '%.0f%%' % (100*float(self.cur_volume)/self.total_volumes[self.cur_setname])
return '%02d/%02d' % (self.cur_volume, self.total_volumes[self.cur_setname])
return self.cur_volume

Loading…
Cancel
Save