From bc07da703a49cfe8ab05db7501a4cdb36bf7e3e8 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 12 Oct 2018 18:23:00 -0500 Subject: [PATCH] Fix user settings Due to api change in 3.6.0.55 --- resources/lib/connect.py | 4 ++-- resources/lib/player.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/connect.py b/resources/lib/connect.py index 21afaacc..ed630ccf 100644 --- a/resources/lib/connect.py +++ b/resources/lib/connect.py @@ -154,8 +154,8 @@ class Connect(object): if 'PrimaryImageTag' in self.user: window('EmbyUserImage', api.API(self.user, client['auth/server-address']).get_user_artwork(self.user['Id'])) - self.server = client['api'].get_system_info() - settings('markPlayed', value=str(self.server['MaxResumePct'])) + server_info = client['api'].get_system_info() + settings('markPlayed', value=str(server_info.get('MaxResumePct', 90))) def select_servers(self, state=None): diff --git a/resources/lib/player.py b/resources/lib/player.py index f5a19790..b5bd521e 100644 --- a/resources/lib/player.py +++ b/resources/lib/player.py @@ -345,6 +345,7 @@ class Player(xbmc.Player): item['CurrentPosition'] = int(item['Runtime']) marker = float(settings('markPlayed')) / 100 + LOG.info("Percent played: %s Mark played at: %s", played, marker) delete = False if item['Type'] == 'Episode' and settings('deleteTV.bool'):