Fix AttributeError

This commit is contained in:
croneter 2018-11-26 07:50:38 +01:00
parent fada7f707f
commit a8fbcc6be4

View file

@ -451,7 +451,7 @@ def _record_playstate(status, ended):
LOG.debug('Playback progress %s (%s of %s seconds)',
progress, time, totaltime)
playcount = status['playcount']
last_played = timing.now()
last_played = timing.kodi_now()
if playcount is None:
LOG.debug('playcount not found, looking it up in the Kodi DB')
with kodi_db.KodiVideoDB() as kodidb: