From d9cd120ca8c0ddcac52fb32b01491d18485710fb Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 9 Sep 2013 14:20:34 +0530 Subject: [PATCH] Fixed a typo, int() the permissions string --- headphones/__init__.py | 2 +- headphones/postprocessor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/__init__.py b/headphones/__init__.py index fcf72106..3959f1fc 100644 --- a/headphones/__init__.py +++ b/headphones/__init__.py @@ -471,7 +471,7 @@ def initialize(): INTERFACE = check_setting_str(CFG, 'General', 'interface', 'default') FOLDER_PERMISSIONS = check_setting_str(CFG, 'General', 'folder_permissions', '0755') - FILE_PERSMISSIONS = check_setting_str(CFG, 'General', 'file_permissions', '0644') + FILE_PERMISSIONS = check_setting_str(CFG, 'General', 'file_permissions', '0644') ENCODERFOLDER = check_setting_str(CFG, 'General', 'encoderfolder', '') ENCODER_PATH = check_setting_str(CFG, 'General', 'encoder_path', '') diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 485028fb..ba61ef91 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -871,7 +871,7 @@ def updateFilePermissions(albumpaths): for files in f: full_path = os.path.join(r, files) try: - os.chmod(full_path, headphones.FILE_PERMISSIONS) + os.chmod(full_path, int(headphones.FILE_PERMISSIONS)) except: logger.error("Could not change permissions for file: " + full_path.decode(headphones.SYS_ENCODING, 'replace')) continue