Seleziona server in Libreria se autoplay è attivo

This commit is contained in:
Alhaziel01
2022-08-19 12:19:35 +02:00
parent d4129b0da2
commit 17d90cd906
2 changed files with 27 additions and 12 deletions

View File

@@ -1782,11 +1782,12 @@ def prevent_busy():
def fakeVideo(sleep = False):
mediaurl = os.path.join(config.get_runtime_path(), "resources", "kod.mp4")
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=mediaurl))
while not is_playing():
xbmc.sleep(200)
xbmc.Player().stop()
if len(sys.argv) > 1:
mediaurl = os.path.join(config.get_runtime_path(), "resources", "kod.mp4")
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=mediaurl))
while not is_playing():
xbmc.sleep(200)
xbmc.Player().stop()
def channelImport(channelId):