From 9fbd01524e567377b6f51a77b8aad4a4d5777322 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 9 Oct 2019 12:02:34 +0200 Subject: [PATCH] - Nascosto Download dai server (Provvisoriamente?) - Forza Riproduzione Direct da Widget (Provvisoriamente?) --- platformcode/launcher.py | 1 + platformcode/platformtools.py | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/platformcode/launcher.py b/platformcode/launcher.py index 059d276e..fdd09864 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -515,6 +515,7 @@ def play_from_library(item): return else: item = videolibrary.play(itemlist[seleccion])[0] + item.play_from = 'window' platformtools.play_video(item) from specials import autoplay diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index 62378f9e..ec2adae7 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -673,6 +673,8 @@ def is_playing(): def play_video(item, strm=False, force_direct=False, autoplay=False): logger.info() + if item.play_from == 'window': + force_direct=True # logger.debug(item.tostring('\n')) logger.debug('item play: %s'%item) xbmc_player = XBMCPlayer() @@ -916,10 +918,10 @@ def get_dialogo_opciones(item, default_action, strm, autoplay): # "Descargar" import xbmcaddon addon = xbmcaddon.Addon('plugin.video.kod') - downloadenabled = addon.getSetting('downloadenabled') - if downloadenabled != "false": - opcion = config.get_localized_string(30153) - opciones.append(opcion) + # downloadenabled = addon.getSetting('downloadenabled') + # if downloadenabled != "false": + # opcion = config.get_localized_string(30153) + # opciones.append(opcion) if item.isFavourite: # "Quitar de favoritos"