Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 10 deletions.
  1. +1 −1 addon.xml
  2. +1 −7 default.py
  3. +6 −2 utils.py
View
2 addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.program.pneumatic"
name="Pneumatic"
- version="0.2.4"
+ version="0.2.5"
provider-name="Popeye">
<requires>
<import addon="xbmc.python" version="2.0"/>
View
8 default.py
@@ -375,14 +375,8 @@ def wait_for_nzf(folder, sab_nzo_id, nzf):
return True
return iscanceled
-def to_bottom(sab_nzo_id, sab_file_list, file_list):
- diff_list = list(set([x[0] for x in sab_file_list])-set([x[0] for x in file_list]))
- nzf_list = SABNZBD.nzf_id_list(sab_nzo_id, diff_list)
- SABNZBD.file_list_position(sab_nzo_id, nzf_list, 3)
- return
-
def nzf_to_bottom(sab_nzo_id, nzf_list, sorted_nzf_list):
- diff_list = list(set([nzf.nzf_id for nzf in nzf_list])-set([nzf.nzf_id for nzf in sorted_nzf_list]))
+ diff_list = list(set([nzf.nzf_id for nzf in nzf_list if nzf.nzf_id is not None])-set([nzf.nzf_id for nzf in sorted_nzf_list if nzf.nzf_id is not None]))
SABNZBD.file_list_position(sab_nzo_id, diff_list, 3)
return
View
8 utils.py
@@ -263,8 +263,12 @@ def short_string(input):
return output
def wait_for_rar_label(nzo, nzf, time_then):
- mb = nzf.mb
- mbleft = nzf.mbleft
+ if nzf is None:
+ mb = 1
+ mbleft = 0
+ else:
+ mb = nzf.mb
+ mbleft = nzf.mbleft
s = time.time() - time_then
if mbleft > 0:
percent = math.floor(((mb-mbleft)/mb)*100)

No commit comments for this range

Something went wrong with that request. Please try again.