Fix user settings

Due to api change in 3.6.0.55
This commit is contained in:
angelblue05 2018-10-12 18:23:00 -05:00
parent a6f4a157a8
commit bc07da703a
2 changed files with 3 additions and 2 deletions

View file

@ -154,8 +154,8 @@ class Connect(object):
if 'PrimaryImageTag' in self.user: if 'PrimaryImageTag' in self.user:
window('EmbyUserImage', api.API(self.user, client['auth/server-address']).get_user_artwork(self.user['Id'])) window('EmbyUserImage', api.API(self.user, client['auth/server-address']).get_user_artwork(self.user['Id']))
self.server = client['api'].get_system_info() server_info = client['api'].get_system_info()
settings('markPlayed', value=str(self.server['MaxResumePct'])) settings('markPlayed', value=str(server_info.get('MaxResumePct', 90)))
def select_servers(self, state=None): def select_servers(self, state=None):

View file

@ -345,6 +345,7 @@ class Player(xbmc.Player):
item['CurrentPosition'] = int(item['Runtime']) item['CurrentPosition'] = int(item['Runtime'])
marker = float(settings('markPlayed')) / 100 marker = float(settings('markPlayed')) / 100
LOG.info("Percent played: %s Mark played at: %s", played, marker)
delete = False delete = False
if item['Type'] == 'Episode' and settings('deleteTV.bool'): if item['Type'] == 'Episode' and settings('deleteTV.bool'):