Episodio successivo spostato in platformtools:

- Funziona in Videoteca di Kod
 - Permette la ripresa della funzione dopo lo stop
This commit is contained in:
Alhaziel
2020-01-09 20:06:21 +01:00
parent 72512f9d80
commit dd08336865
2 changed files with 8 additions and 7 deletions

View File

@@ -467,9 +467,6 @@ def play_from_library(item):
if xbmc.getCondVisibility('Window.IsMedia') and not window_type == 1:
# Ventana convencional
xbmc.executebuiltin("Container.Update(" + sys.argv[0] + "?" + item.tourl() + ")")
if config.get_setting('next_ep') > 0 and item.contentType != 'movie':
from specials.nextep import afther_stop
afther_stop(item)
else:
# Ventana emergente
@@ -535,6 +532,3 @@ def play_from_library(item):
if (platformtools.is_playing() and item.action) or item.server == 'torrent' or autoplay.is_active(item.contentChannel):
break
if config.get_setting('next_ep') > 0 and item.contentType != 'movie':
from specials.nextep import afther_stop
afther_stop(item)

View File

@@ -756,6 +756,9 @@ def play_video(item, strm=False, force_direct=False, autoplay=False):
# Reproduce
xbmc_player.play(playlist, xlistitem)
if not item.launcher and (strm or item.strm_path) and config.get_setting('next_ep') > 0 and item.contentType != 'movie':
from specials.nextep import afther_stop
afther_stop(item)
else:
set_player(item, xlistitem, mediaurl, view, strm)
@@ -1099,7 +1102,7 @@ def set_player(item, xlistitem, mediaurl, view, strm):
download_and_play.download_and_play(mediaurl, "download_and_play.mp4", config.get_setting("downloadpath"))
return
elif config.get_setting("player_mode") == 0 or \
elif config.get_setting("player_mode") == 0 or\
(config.get_setting("player_mode") == 3 and mediaurl.startswith("rtmp")):
# Añadimos el listitem a una lista de reproducción (playlist)
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
@@ -1138,6 +1141,10 @@ def set_player(item, xlistitem, mediaurl, view, strm):
from platformcode import xbmc_videolibrary
xbmc_videolibrary.mark_auto_as_watched(item)
if not item.launcher and (strm or item.strm_path) and config.get_setting('next_ep') > 0 and item.contentType != 'movie':
from specials.nextep import afther_stop
afther_stop(item)
def torrent_client_installed(show_tuple=False):
# Plugins externos se encuentra en servers/torrent.json nodo clients