diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 7f091dd37..fd9663cd4 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -166,7 +166,7 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName, try: fld = get_target_folder(path) - chmod = int(settings.general.chmod, 8) if sys.platform.startswith('linux') else None + chmod = int(settings.general.chmod, 8) if not sys.platform.startswith('win') else None saved_subtitles = save_subtitles(video.original_path, subtitles, single=single, tags=None, # fixme directory=fld, diff --git a/views/settings.tpl b/views/settings.tpl index dce0e8e75..b04f8c3a6 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -152,9 +152,7 @@ - % import sys - % if sys.platform.startswith('linux'): -
+
@@ -168,12 +166,11 @@
- %end
@@ -1978,6 +1975,10 @@ % if args.no_update: $("#div_update").hide(); % end + % import sys + % if sys.platform.startswith('win'): + $("#chmod").hide(); + % end $('.menu .item') .tab() @@ -2370,12 +2371,12 @@ } ] }, - % if sys.platform.startswith('linux'): + % if not sys.platform.startswith('win'): settings_general_chmod: { rules: [ { - type: 'regExp[^(0[0-7]{3})$]', - prompt: 'Please use only 4-digit integers with leading 0 (e.g.: 775)' + type: 'regExp[^([0-7]{4})$]', + prompt: 'Please use only 4-digit octal (e.g.: 0775)' } ] },