Fix AttributeError

This commit is contained in:
croneter 2018-11-20 17:17:52 +01:00
parent 6fe0e23f53
commit f2df4fade6

View file

@ -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