mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 11:38:30 -07:00
Remove unused variable
This commit is contained in:
parent
93ec74f1c7
commit
a289eef88e
5 changed files with 0 additions and 10 deletions
|
@ -745,7 +745,6 @@ def initialize(section=None):
|
||||||
if codec in codec_alias:
|
if codec in codec_alias:
|
||||||
extra = [item for item in codec_alias[codec] if item not in ACODEC3_ALLOW]
|
extra = [item for item in codec_alias[codec] if item not in ACODEC3_ALLOW]
|
||||||
ACODEC3_ALLOW.extend(extra)
|
ACODEC3_ALLOW.extend(extra)
|
||||||
codec_alias = {} # clear memory
|
|
||||||
|
|
||||||
PASSWORDSFILE = CFG['passwords']['PassWordFile']
|
PASSWORDSFILE = CFG['passwords']['PassWordFile']
|
||||||
|
|
||||||
|
|
|
@ -221,7 +221,6 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
||||||
res = json.loads(r.content)
|
res = json.loads(r.content)
|
||||||
scan_id = int(res['id'])
|
scan_id = int(res['id'])
|
||||||
logger.debug('Scan started with id: {0}'.format(scan_id), section)
|
logger.debug('Scan started with id: {0}'.format(scan_id), section)
|
||||||
started = True
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning('No scan id was returned due to: {0}'.format(e), section)
|
logger.warning('No scan id was returned due to: {0}'.format(e), section)
|
||||||
scan_id = None
|
scan_id = None
|
||||||
|
|
|
@ -117,18 +117,12 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
||||||
status_code=1,
|
status_code=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
success = False
|
|
||||||
queued = False
|
|
||||||
started = False
|
|
||||||
try:
|
try:
|
||||||
res = json.loads(r.content)
|
res = json.loads(r.content)
|
||||||
scan_id = int(res['id'])
|
scan_id = int(res['id'])
|
||||||
logger.debug('Scan started with id: {0}'.format(scan_id), section)
|
logger.debug('Scan started with id: {0}'.format(scan_id), section)
|
||||||
started = True
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning('No scan id was returned due to: {0}'.format(e), section)
|
logger.warning('No scan id was returned due to: {0}'.format(e), section)
|
||||||
scan_id = None
|
|
||||||
started = False
|
|
||||||
return ProcessResult(
|
return ProcessResult(
|
||||||
message='{0}: Failed to post-process - Unable to start scan'.format(section),
|
message='{0}: Failed to post-process - Unable to start scan'.format(section),
|
||||||
status_code=1,
|
status_code=1,
|
||||||
|
|
|
@ -87,7 +87,6 @@ def auto_fork(section, input_category):
|
||||||
r = []
|
r = []
|
||||||
if r and r.ok:
|
if r and r.ok:
|
||||||
if apikey:
|
if apikey:
|
||||||
optional_parameters = []
|
|
||||||
try:
|
try:
|
||||||
json_data = r.json()
|
json_data = r.json()
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
|
@ -148,7 +148,6 @@ def rename_script(dirname):
|
||||||
|
|
||||||
|
|
||||||
def par2(dirname):
|
def par2(dirname):
|
||||||
newlist = []
|
|
||||||
sofar = 0
|
sofar = 0
|
||||||
parfile = ''
|
parfile = ''
|
||||||
objects = []
|
objects = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue