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