mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix user settings
Due to api change in 3.6.0.55
This commit is contained in:
parent
a6f4a157a8
commit
bc07da703a
2 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
||||
|
|
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue