forked from LBRYCommunity/lbry-sdk
console fix
This commit is contained in:
parent
915233c96c
commit
24a88db595
1 changed files with 4 additions and 2 deletions
|
@ -390,8 +390,10 @@ class Advanced(Basic):
|
||||||
else:
|
else:
|
||||||
if d['done'][0] != -1:
|
if d['done'][0] != -1:
|
||||||
main_bar_name = f"{name[:name.rindex('.')]}.main"
|
main_bar_name = f"{name[:name.rindex('.')]}.main"
|
||||||
last = (bar.last_print_n,) if len(d['done']) == 1 else (bar.last_print_n, bar.last_print_n2)
|
if len(d['done']) > 1:
|
||||||
diff = tuple(a-b for a, b in zip(d['done'], last))
|
diff = tuple(a-b for a, b in zip(d['done'], (bar.last_print_n, bar.last_print_n2)))
|
||||||
|
else:
|
||||||
|
diff = d['done'][0] - bar.last_print_n
|
||||||
if main_bar_name != name:
|
if main_bar_name != name:
|
||||||
main_bar = self.bars.get(main_bar_name)
|
main_bar = self.bars.get(main_bar_name)
|
||||||
if main_bar.unit == bar.unit:
|
if main_bar.unit == bar.unit:
|
||||||
|
|
Loading…
Reference in a new issue