diff --git a/platformcode/xbmc_videolibrary.py b/platformcode/xbmc_videolibrary.py index baf1bb65..732ca048 100644 --- a/platformcode/xbmc_videolibrary.py +++ b/platformcode/xbmc_videolibrary.py @@ -93,7 +93,7 @@ def mark_auto_as_watched(item): logger.debug('REOPEN') item.played_time = actual_time db['controls']['reopen'] = True - db.close() + platformtools.set_played_time(item) # Silent sync with Trakt @@ -104,8 +104,11 @@ def mark_auto_as_watched(item): if next_episode and next_episode.next_ep and config.get_setting('next_ep') < 3: from platformcode.launcher import run + xbmc.sleep(1000) run(next_episode) + db.close() + # If it is configured to mark as seen if config.get_setting("mark_as_watched", "videolibrary"): threading.Thread(target=mark_as_watched_subThread, args=[item]).start()