mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 22:23:32 -07:00
fix nice and ionice commands. Fixes #479
This commit is contained in:
parent
17073857e1
commit
dcd06e0f0c
1 changed files with 1 additions and 3 deletions
|
@ -333,7 +333,7 @@ def initialize(section=None):
|
||||||
REMOTEPATHS = [ tuple(item.split(',')) for item in REMOTEPATHS.split('|') ] # /volume1/Public/,E:\|/volume2/share/,\\NAS\
|
REMOTEPATHS = [ tuple(item.split(',')) for item in REMOTEPATHS.split('|') ] # /volume1/Public/,E:\|/volume2/share/,\\NAS\
|
||||||
|
|
||||||
try:
|
try:
|
||||||
NICENESS.extend(['nice', '-n', int(CFG["Posix"]["niceness"])])
|
NICENESS.extend(['nice', '-n%s' % (int(CFG["Posix"]["niceness"]))])
|
||||||
except: pass
|
except: pass
|
||||||
try:
|
try:
|
||||||
NICENESS.extend(['ionice', '-c%s' % (int(CFG["Posix"]["ionice_class"]))])
|
NICENESS.extend(['ionice', '-c%s' % (int(CFG["Posix"]["ionice_class"]))])
|
||||||
|
@ -344,8 +344,6 @@ def initialize(section=None):
|
||||||
else:
|
else:
|
||||||
NICENESS.extend(['ionice', '-n%s' % (int(CFG["Posix"]["ionice_classdata"]))])
|
NICENESS.extend(['ionice', '-n%s' % (int(CFG["Posix"]["ionice_classdata"]))])
|
||||||
except: pass
|
except: pass
|
||||||
if 'ionice' in NICENESS:
|
|
||||||
NICENESS.extend(['-t'])
|
|
||||||
|
|
||||||
COMPRESSEDCONTAINER = [re.compile('.r\d{2}$', re.I),
|
COMPRESSEDCONTAINER = [re.compile('.r\d{2}$', re.I),
|
||||||
re.compile('.part\d+.rar$', re.I),
|
re.compile('.part\d+.rar$', re.I),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue