Test Episodio successivo in playlist

This commit is contained in:
Alhaziel01
2021-03-18 17:59:48 +01:00
parent 485691e6fd
commit 4ee336aae9
6 changed files with 42 additions and 7 deletions

View File

@@ -461,7 +461,8 @@ def play_from_library(item):
# Modify the action (currently the video library needs "findvideos" since this is where the sources are searched
item.action = "findvideos"
window_type = config.get_setting("window_type", "videolibrary")
window_type = config.get_setting("window_type", "videolibrary") if config.get_setting('next_ep') < 3 else 1
# and launch kodi again
if xbmc.getCondVisibility('Window.IsMedia') and not window_type == 1:
xbmc.executebuiltin("Container.Update(" + sys.argv[0] + "?" + item.tourl() + ")")