Refactor NZB_DEFAULTDIR -> NZB_DEFAULT_DIRECTORY

This commit is contained in:
Labrys of Knossos 2019-01-19 00:35:35 -05:00
commit fafcdb4ed5
2 changed files with 4 additions and 4 deletions

View file

@ -645,7 +645,7 @@ except NameError:
# post-processing
def process(input_directory, input_name=None, status=0, client_agent='manual', download_id=None, input_category=None, failure_link=None):
if core.SAFE_MODE and input_directory == core.NZB_DEFAULTDIR:
if core.SAFE_MODE and input_directory == core.NZB_DEFAULT_DIRECTORY:
logger.error(
'The input directory:[{0}] is the Default Download Directory. Please configure category directories to prevent processing of other media.'.format(
input_directory))