Rimossi log da Episodio successivo
This commit is contained in:
@@ -549,7 +549,6 @@ def play_from_library(item):
|
|||||||
break
|
break
|
||||||
|
|
||||||
if it.show_server and check_next_ep:
|
if it.show_server and check_next_ep:
|
||||||
logger.info('PARTITO')
|
|
||||||
nextep.run(it)
|
nextep.run(it)
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
p_dialog.close()
|
p_dialog.close()
|
||||||
|
|||||||
+3
-6
@@ -14,14 +14,14 @@ def check(item):
|
|||||||
|
|
||||||
|
|
||||||
def return_item(item):
|
def return_item(item):
|
||||||
logger.info('AS ITEM\n'+str(item))
|
logger.info()
|
||||||
with futures.ThreadPoolExecutor() as executor:
|
with futures.ThreadPoolExecutor() as executor:
|
||||||
future = executor.submit(next_ep, item)
|
future = executor.submit(next_ep, item)
|
||||||
item = future.result()
|
item = future.result()
|
||||||
return item
|
return item
|
||||||
|
|
||||||
def run(item):
|
def run(item):
|
||||||
logger.info('AS ITEM\n'+str(item))
|
logger.info()
|
||||||
with futures.ThreadPoolExecutor() as executor:
|
with futures.ThreadPoolExecutor() as executor:
|
||||||
future = executor.submit(next_ep, item)
|
future = executor.submit(next_ep, item)
|
||||||
item = future.result()
|
item = future.result()
|
||||||
@@ -71,9 +71,7 @@ def next_ep(item):
|
|||||||
# check i next file exist
|
# check i next file exist
|
||||||
current_filename = os.path.basename(item.strm_path)
|
current_filename = os.path.basename(item.strm_path)
|
||||||
base_path = os.path.basename(os.path.normpath(os.path.dirname(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)
|
path = filetools.join(config.get_videolibrary_path(), config.get_setting("folder_tvshows"),base_path)
|
||||||
logger.info('PATH:' + path)
|
|
||||||
fileList = []
|
fileList = []
|
||||||
for file in os.listdir(path):
|
for file in os.listdir(path):
|
||||||
if file.endswith('.strm'):
|
if file.endswith('.strm'):
|
||||||
@@ -112,13 +110,12 @@ def next_ep(item):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
nextDialog.close()
|
nextDialog.close()
|
||||||
logger.info('CONTINUE: ' +str(nextDialog.stillwatching))
|
logger.info('Next Episode: ' +str(nextDialog.stillwatching))
|
||||||
|
|
||||||
if nextDialog.stillwatching or nextDialog.continuewatching:
|
if nextDialog.stillwatching or nextDialog.continuewatching:
|
||||||
item.next_ep = True
|
item.next_ep = True
|
||||||
xbmc.Player().stop()
|
xbmc.Player().stop()
|
||||||
if VL:
|
if VL:
|
||||||
logger.info('BACK STILL')
|
|
||||||
sleep(1)
|
sleep(1)
|
||||||
xbmc.executebuiltin('Action(Back)')
|
xbmc.executebuiltin('Action(Back)')
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
|
|||||||
@@ -579,7 +579,6 @@ def findvideos(item):
|
|||||||
autoplay.play_multi_channel(item, itemlist)
|
autoplay.play_multi_channel(item, itemlist)
|
||||||
from inspect import stack
|
from inspect import stack
|
||||||
from specials import nextep
|
from specials import nextep
|
||||||
logger.info('STACK= ' + stack()[1][3])
|
|
||||||
if nextep.check(item) and stack()[1][3] == 'run':
|
if nextep.check(item) and stack()[1][3] == 'run':
|
||||||
nextep.videolibrary(item)
|
nextep.videolibrary(item)
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|||||||
Reference in New Issue
Block a user