Merge branch 'master' of https://github.com/kodiondemand/addon into master

This commit is contained in:
Alhaziel01
2020-12-10 19:10:08 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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()