diff --git a/resources/lib/initialsetup.py b/resources/lib/initialsetup.py index 795cbf9e..259d5c15 100644 --- a/resources/lib/initialsetup.py +++ b/resources/lib/initialsetup.py @@ -128,10 +128,9 @@ def _write_pms_settings(url, token): return for entry in xml: if entry.attrib.get('id', '') == 'allowMediaDeletion': - settings('plex_allows_mediaDeletion', - value=entry.attrib.get('value', 'true')) - window('plex_allows_mediaDeletion', - value=entry.attrib.get('value', 'true')) + value = 'true' if entry.get('value', '1') == '1' else 'false' + settings('plex_allows_mediaDeletion', value=value) + window('plex_allows_mediaDeletion', value=value) class InitialSetup(object):