From e155a35ea27c7e21cd42e3571e6656fd52bbb8ac Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Thu, 16 Jan 2020 19:03:37 +0100 Subject: [PATCH] Rimossi log da Episodio successivo --- platformcode/launcher.py | 1 - specials/nextep.py | 9 +++------ specials/videolibrary.py | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/platformcode/launcher.py b/platformcode/launcher.py index 4dca6e72..c89d7a7d 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -549,7 +549,6 @@ def play_from_library(item): break if it.show_server and check_next_ep: - logger.info('PARTITO') nextep.run(it) sleep(0.5) p_dialog.close() diff --git a/specials/nextep.py b/specials/nextep.py index bc4d9106..e69a4600 100644 --- a/specials/nextep.py +++ b/specials/nextep.py @@ -14,14 +14,14 @@ def check(item): def return_item(item): - logger.info('AS ITEM\n'+str(item)) + logger.info() with futures.ThreadPoolExecutor() as executor: future = executor.submit(next_ep, item) item = future.result() return item def run(item): - logger.info('AS ITEM\n'+str(item)) + logger.info() with futures.ThreadPoolExecutor() as executor: future = executor.submit(next_ep, item) item = future.result() @@ -71,9 +71,7 @@ def next_ep(item): # check i next file exist current_filename = os.path.basename(item.strm_path) base_path = os.path.basename(os.path.normpath(os.path.dirname(item.strm_path))) - logger.info('PATH:' + base_path) path = filetools.join(config.get_videolibrary_path(), config.get_setting("folder_tvshows"),base_path) - logger.info('PATH:' + path) fileList = [] for file in os.listdir(path): if file.endswith('.strm'): @@ -112,13 +110,12 @@ def next_ep(item): pass nextDialog.close() - logger.info('CONTINUE: ' +str(nextDialog.stillwatching)) + logger.info('Next Episode: ' +str(nextDialog.stillwatching)) if nextDialog.stillwatching or nextDialog.continuewatching: item.next_ep = True xbmc.Player().stop() if VL: - logger.info('BACK STILL') sleep(1) xbmc.executebuiltin('Action(Back)') sleep(0.5) diff --git a/specials/videolibrary.py b/specials/videolibrary.py index 4f4f3c88..ec50021f 100644 --- a/specials/videolibrary.py +++ b/specials/videolibrary.py @@ -579,9 +579,8 @@ def findvideos(item): autoplay.play_multi_channel(item, itemlist) from inspect import stack from specials import nextep - logger.info('STACK= ' + stack()[1][3]) if nextep.check(item) and stack()[1][3] == 'run': - nextep.videolibrary(item) + nextep.videolibrary(item) return itemlist