From 807fb1614ed56499676e080b3dde21d10efd941c Mon Sep 17 00:00:00 2001 From: Croneter Date: Thu, 7 Jun 2018 17:23:24 +0200 Subject: [PATCH] Fix context menu missing "Delete item from PMS" - Fixes #483 --- resources/lib/initialsetup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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):