Fix AttributeError
This commit is contained in:
parent
6fe0e23f53
commit
f2df4fade6
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ class API(object):
|
|||
played = True if playcount else False
|
||||
|
||||
try:
|
||||
last_played = utils.plex_date_to_kodi(int(item['lastViewedAt']))
|
||||
last_played = timing.plex_date_to_kodi(int(item['lastViewedAt']))
|
||||
except (KeyError, ValueError):
|
||||
last_played = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue