diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index 6756f131..25882fa6 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -1038,7 +1038,6 @@ def set_player(item, xlistitem, mediaurl, view, strm): elif "megacrypter.com" in mediaurl: player_mode = 3 logger.info("mediaurl=" + mediaurl) - if player_mode in [0,1]: logger.info('Player Mode:' + ['Direct', 'Bookmark'][player_mode]) # Add the listitem to a playlist diff --git a/platformcode/xbmc_videolibrary.py b/platformcode/xbmc_videolibrary.py index 10b12e6c..1958d00e 100644 --- a/platformcode/xbmc_videolibrary.py +++ b/platformcode/xbmc_videolibrary.py @@ -24,11 +24,13 @@ def mark_auto_as_watched(item): def mark_as_watched_subThread(item): logger.debug() # logger.debug("item:\n" + item.tostring('\n')) + if item.options['continue']: item.played_time = platformtools.resume_playback(platformtools.get_played_time(item)) time_limit = time.time() + 30 while not platformtools.is_playing() and time.time() < time_limit: time.sleep(1) + marked = False next_episode = None show_server = True @@ -97,7 +99,6 @@ def mark_auto_as_watched(item): # If it is configured to mark as seen if config.get_setting("mark_as_watched", "videolibrary"): - if item.options['continue']: item.played_time = platformtools.resume_playback(platformtools.get_played_time(item)) threading.Thread(target=mark_as_watched_subThread, args=[item]).start()