Save NaN and not 0 to Kodi DB if playcount is zero

This commit is contained in:
croneter 2018-03-18 15:08:55 +01:00
parent 6fcbf29779
commit ea57eb5f93

View file

@ -90,7 +90,7 @@ def _record_playstate(status, ended):
LOG.debug('Ignoring playback less than %s seconds',
v.IGNORE_SECONDS_AT_START)
# Annoying Plex bug - it'll reset an already watched video to unwatched
playcount = 0
playcount = None
last_played = None
time = 0
elif progress >= v.MARK_PLAYED_AT: