Prova riproduzione

This commit is contained in:
mac12m99
2021-11-02 21:40:20 +01:00
parent ebbf37222e
commit 6e4aec0ab9
3 changed files with 9 additions and 5 deletions

View File

@@ -459,8 +459,14 @@ def play_from_library(item):
from time import sleep
# logger.debug("item: \n" + item.tostring('\n'))
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True,
xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4")))
while not platformtools.is_playing():
xbmc.sleep(10)
xbmc.Player().stop()
platformtools.prevent_busy()
itemlist=[]
item.fromLibrary = True
item.window = True
@@ -531,7 +537,7 @@ def play_from_library(item):
if selection == -1:
return
else:
item = videolibrary.play(itemlist[selection + selection_implementation])[0]
item = videolibrary.play(itemlist[selection + selection_implementation])[0]
platformtools.play_video(item)
reopen = True
# if (platformtools.is_playing() and item.action) or item.server == 'torrent' or config.get_setting('autoplay'): break

View File

@@ -377,8 +377,6 @@ def set_watched_on_kod(data):
path = filetools.join(path, filename)
head_nfo, item = videolibrarytools.read_nfo(path)
from core.support import dbg
dbg()
if item.library_playcounts:
item.library_playcounts.update({title: playcount})
else: