mirror of https://github.com/morpheus65535/bazarr
Fixed empty strings being saved as 'None' in config.ini.
This commit is contained in:
parent
83764bb07b
commit
c2059584db
|
@ -318,7 +318,7 @@ def save_settings(settings_items):
|
|||
# Make sure that text based form values aren't pass as list
|
||||
if isinstance(value, list) and len(value) == 1 and settings_keys[-1] not in array_keys:
|
||||
value = value[0]
|
||||
if value in empty_values:
|
||||
if value in empty_values and value is not '':
|
||||
value = None
|
||||
|
||||
# Make sure empty language list are stored correctly
|
||||
|
|
Loading…
Reference in New Issue