diff --git a/core/__init__.py b/core/__init__.py index 6487e716..68d4a95c 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -745,7 +745,6 @@ def initialize(section=None): if codec in codec_alias: extra = [item for item in codec_alias[codec] if item not in ACODEC3_ALLOW] ACODEC3_ALLOW.extend(extra) - codec_alias = {} # clear memory PASSWORDSFILE = CFG['passwords']['PassWordFile'] diff --git a/core/auto_process/movies.py b/core/auto_process/movies.py index 7c7b8f02..0c2f5880 100644 --- a/core/auto_process/movies.py +++ b/core/auto_process/movies.py @@ -221,7 +221,6 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual', res = json.loads(r.content) scan_id = int(res['id']) logger.debug('Scan started with id: {0}'.format(scan_id), section) - started = True except Exception as e: logger.warning('No scan id was returned due to: {0}'.format(e), section) scan_id = None diff --git a/core/auto_process/music.py b/core/auto_process/music.py index 9c5f7048..58e63714 100644 --- a/core/auto_process/music.py +++ b/core/auto_process/music.py @@ -117,18 +117,12 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual', status_code=1, ) - success = False - queued = False - started = False try: res = json.loads(r.content) scan_id = int(res['id']) logger.debug('Scan started with id: {0}'.format(scan_id), section) - started = True except Exception as e: logger.warning('No scan id was returned due to: {0}'.format(e), section) - scan_id = None - started = False return ProcessResult( message='{0}: Failed to post-process - Unable to start scan'.format(section), status_code=1, diff --git a/core/forks.py b/core/forks.py index 65610ad0..ede32f9c 100644 --- a/core/forks.py +++ b/core/forks.py @@ -87,7 +87,6 @@ def auto_fork(section, input_category): r = [] if r and r.ok: if apikey: - optional_parameters = [] try: json_data = r.json() except ValueError: diff --git a/core/scene_exceptions.py b/core/scene_exceptions.py index 5d830012..f2c53c45 100644 --- a/core/scene_exceptions.py +++ b/core/scene_exceptions.py @@ -148,7 +148,6 @@ def rename_script(dirname): def par2(dirname): - newlist = [] sofar = 0 parfile = '' objects = []