From 2bddec60dbababea199e91086043e2d674471473 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sat, 23 Sep 2017 18:49:59 +0200 Subject: [PATCH] Fix items not getting marked as fully watched - Hopefully fixes #341 --- resources/lib/librarysync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 6b3e8560..c10e39ba 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1390,6 +1390,10 @@ class LibrarySync(Thread): resume = item.get('viewOffset') / 1000 else: resume = item.get('viewOffset') + if resume >= v.MARK_PLAYED_AT and status not in ('stopped', 'ended'): + # We need to drop these as we'll otherwise NOT mark an item as + # completely watched after having seen >90% + continue # Append to list that we need to process items.append({ 'ratingKey': ratingKey,