Se Autoplay è attivo non mostra la lista server
This commit is contained in:
@@ -446,6 +446,8 @@ def play_from_library(item):
|
||||
import xbmcplugin
|
||||
import xbmc
|
||||
from time import sleep
|
||||
from specials import autoplay
|
||||
from specials import videolibrary
|
||||
|
||||
# Intentamos reproducir una imagen (esto no hace nada y ademas no da error)
|
||||
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True,
|
||||
@@ -461,14 +463,16 @@ def play_from_library(item):
|
||||
|
||||
window_type = config.get_setting("window_type", "videolibrary")
|
||||
|
||||
if autoplay.is_active(item.contentChannel):
|
||||
itemlist = videolibrary.findvideos(item)
|
||||
|
||||
# y volvemos a lanzar kodi
|
||||
if xbmc.getCondVisibility('Window.IsMedia') and not window_type == 1:
|
||||
elif xbmc.getCondVisibility('Window.IsMedia') and not window_type == 1:
|
||||
# Ventana convencional
|
||||
xbmc.executebuiltin("Container.Update(" + sys.argv[0] + "?" + item.tourl() + ")")
|
||||
|
||||
else:
|
||||
# Ventana emergente
|
||||
from specials import videolibrary
|
||||
p_dialog = platformtools.dialog_progress_bg(config.get_localized_string(20000), config.get_localized_string(70004))
|
||||
p_dialog.update(0, '')
|
||||
|
||||
@@ -527,6 +531,5 @@ def play_from_library(item):
|
||||
item.play_from = 'window'
|
||||
platformtools.play_video(item)
|
||||
|
||||
from specials import autoplay
|
||||
if (platformtools.is_playing() and item.action) or item.server == 'torrent' or autoplay.is_active(item.contentChannel):
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user