From bba0a43573343418cead9ea0ce12531f552fe280 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Tue, 5 Jan 2021 18:34:17 +0100 Subject: [PATCH] Piccoli Fix --- platformcode/launcher.py | 7 +++++-- platformcode/xbmc_videolibrary.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platformcode/launcher.py b/platformcode/launcher.py index 3b1c850a..115da762 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -482,7 +482,10 @@ def play_from_library(item): item.play_from = 'window' itemlist = videolibrary.findvideos(item) p_dialog.update(100, ''); sleep(0.5); p_dialog.close() - while platformtools.is_playing(): sleep(1) + played = False + while platformtools.is_playing(): + played = True + sleep(1) if item.contentType == 'movie': nfo_path = item.nfo else: nfo_path = item.strm_path.replace('strm','nfo') if nfo_path and filetools.isfile(nfo_path): @@ -490,7 +493,7 @@ def play_from_library(item): head_nfo, item_nfo = videolibrarytools.read_nfo(nfo_path) played_time = platformtools.get_played_time(item_nfo) else: played_time = 0 - if not played_time: + if not played_time and played: return # The number of links to show is limited diff --git a/platformcode/xbmc_videolibrary.py b/platformcode/xbmc_videolibrary.py index 12eae9e3..daca5e91 100644 --- a/platformcode/xbmc_videolibrary.py +++ b/platformcode/xbmc_videolibrary.py @@ -93,7 +93,7 @@ def mark_auto_as_watched(item): xbmc.sleep(100) if not show_server and item.play_from != 'window' and not item.no_return: xbmc.sleep(700) - xbmc.executebuiltin('Action(Back)') + xbmc.executebuiltin('Action(ParentDir)') xbmc.sleep(500) if next_episode and next_episode.next_ep: from platformcode.launcher import play_from_library