Fix context menu missing "Delete item from PMS"

- Fixes #483
This commit is contained in:
Croneter 2018-06-07 17:23:24 +02:00
parent ee1a33cc4c
commit 807fb1614e

View file

@ -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):