From 6076da724b9b8f44b1f91097c7fc0d3bbac4a9ea Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 25 Dec 2018 18:13:50 +0100 Subject: [PATCH] Fix video resuming from old resume point --- resources/lib/playback.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/playback.py b/resources/lib/playback.py index 79e6d52d..d0968fd1 100644 --- a/resources/lib/playback.py +++ b/resources/lib/playback.py @@ -409,8 +409,9 @@ def _conclude_playback(playqueue, pos): if app.PLAYSTATE.resume_playback is True: app.PLAYSTATE.resume_playback = False - if (item.offset is None and - item.plex_type not in (v.PLEX_TYPE_SONG, v.PLEX_TYPE_CLIP)): + if item.plex_type not in (v.PLEX_TYPE_SONG, v.PLEX_TYPE_CLIP): + # Do NOT use item.offset directly but get it from the DB + # (user might have initiated same video twice) with PlexDB() as plexdb: db_item = plexdb.item_by_id(item.plex_id, item.plex_type) file_id = db_item['kodi_fileid'] if db_item else None