Merge pull request #770 from croneter/fix-timesync
Fix float() argument must be a string or a number
This commit is contained in:
commit
0ee65b9f6c
1 changed files with 3 additions and 3 deletions
|
@ -90,9 +90,9 @@ def sync_pms_time():
|
||||||
# Toggle watched state back
|
# Toggle watched state back
|
||||||
PF.scrobble(plex_id, 'unwatched')
|
PF.scrobble(plex_id, 'unwatched')
|
||||||
try:
|
try:
|
||||||
plextime = xml[0].get('lastViewedAt')
|
plextime = xml[0].attrib['lastViewedAt']
|
||||||
except (IndexError, TypeError, AttributeError):
|
except (IndexError, TypeError, AttributeError, KeyError):
|
||||||
LOG.error('Could not get lastViewedAt - aborting')
|
LOG.warn('Could not get lastViewedAt - aborting')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Calculate time offset Kodi-PMS
|
# Calculate time offset Kodi-PMS
|
||||||
|
|
Loading…
Reference in a new issue