From fd9007ff493979ac8087924cd5323054766775aa Mon Sep 17 00:00:00 2001 From: Halali Date: Wed, 20 Feb 2019 17:04:09 +0100 Subject: [PATCH] Remove chmod feature --- bazarr/config.py | 1 - bazarr/get_subtitle.py | 3 +-- views/settings.tpl | 31 ------------------------------- 3 files changed, 1 insertion(+), 34 deletions(-) diff --git a/bazarr/config.py b/bazarr/config.py index a783a92d9..87f143bab 100644 --- a/bazarr/config.py +++ b/bazarr/config.py @@ -35,7 +35,6 @@ defaults = { 'enabled_providers': '', 'throtteled_providers': '', 'multithreading': 'True', - 'chmod': '0640', 'subfolder': 'current', 'subfolder_custom': '' }, diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 89bddb557..8240d5d8c 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -166,11 +166,10 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName, try: fld = get_target_folder(path) - chmod = int(settings.general.chmod) if sys.platform.startswith('linux') else None saved_subtitles = save_subtitles(video.original_path, subtitles, single=single, tags=None, # fixme directory=fld, - chmod=chmod, + chmod=None, # formats=("srt", "vtt") path_decoder=force_unicode ) diff --git a/views/settings.tpl b/views/settings.tpl index e09bb5285..4eb30b711 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -152,28 +152,6 @@ - % import sys - % if sys.platform.startswith('linux'): -
-
- -
-
-
-
- - -
-
-
- -
- %end
@@ -2241,15 +2219,6 @@ } ] }, - % if sys.platform.startswith('linux'): - settings_general_chmod: { - rules: [ - { - type: 'regExp[^(0[0-7]{3})$]', - prompt: 'Please use only 4-digit integers with leading 0 (e.g.: 775)' - } - ] - }, % end settings_subfolder_custom : { rules : [