mirror of https://github.com/morpheus65535/bazarr
Remove chmod feature
This commit is contained in:
parent
3c2958ffd3
commit
fd9007ff49
|
@ -35,7 +35,6 @@ defaults = {
|
||||||
'enabled_providers': '',
|
'enabled_providers': '',
|
||||||
'throtteled_providers': '',
|
'throtteled_providers': '',
|
||||||
'multithreading': 'True',
|
'multithreading': 'True',
|
||||||
'chmod': '0640',
|
|
||||||
'subfolder': 'current',
|
'subfolder': 'current',
|
||||||
'subfolder_custom': ''
|
'subfolder_custom': ''
|
||||||
},
|
},
|
||||||
|
|
|
@ -166,11 +166,10 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName,
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fld = get_target_folder(path)
|
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,
|
saved_subtitles = save_subtitles(video.original_path, subtitles, single=single,
|
||||||
tags=None, # fixme
|
tags=None, # fixme
|
||||||
directory=fld,
|
directory=fld,
|
||||||
chmod=chmod,
|
chmod=None,
|
||||||
# formats=("srt", "vtt")
|
# formats=("srt", "vtt")
|
||||||
path_decoder=force_unicode
|
path_decoder=force_unicode
|
||||||
)
|
)
|
||||||
|
|
|
@ -152,28 +152,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
% import sys
|
|
||||||
% if sys.platform.startswith('linux'):
|
|
||||||
<div class="middle aligned row">
|
|
||||||
<div class="right aligned four wide column">
|
|
||||||
<label>Set subtitle file permissions to</label>
|
|
||||||
</div>
|
|
||||||
<div class="five wide column">
|
|
||||||
<div class='field'>
|
|
||||||
<div id="settings_chmod" class="ui fluid input">
|
|
||||||
<input name="settings_general_chmod" type="text"
|
|
||||||
value={{ settings.general.chmod }}>
|
|
||||||
<label></label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="collapsed center aligned column">
|
|
||||||
<div class="ui basic icon" data-tooltip="Must be integer, e.g.: 0775" data-inverted="">
|
|
||||||
<i class="help circle large icon"></i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
%end
|
|
||||||
|
|
||||||
<div class="middle aligned row">
|
<div class="middle aligned row">
|
||||||
<div class="right aligned four wide column">
|
<div class="right aligned four wide column">
|
||||||
|
@ -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
|
% end
|
||||||
settings_subfolder_custom : {
|
settings_subfolder_custom : {
|
||||||
rules : [
|
rules : [
|
||||||
|
|
Loading…
Reference in New Issue