From 600edda4211320a865a0bd67990e1dc7320e4cbb Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Fri, 13 Jul 2018 21:05:20 +0200 Subject: [PATCH 1/2] Newpct1: mejoras internas --- plugin.video.alfa/channels/newpct1.py | 5 ++++- plugin.video.alfa/lib/generictools.py | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/plugin.video.alfa/channels/newpct1.py b/plugin.video.alfa/channels/newpct1.py index 7d8cfdcd..b17651bf 100644 --- a/plugin.video.alfa/channels/newpct1.py +++ b/plugin.video.alfa/channels/newpct1.py @@ -98,7 +98,10 @@ def mainlist(item): def settingCanal(item): from platformcode import platformtools - return platformtools.show_channel_settings() + platformtools.show_channel_settings() + platformtools.itemlist_refresh() + return + def submenu(item): diff --git a/plugin.video.alfa/lib/generictools.py b/plugin.video.alfa/lib/generictools.py index 4f8ca78c..a3b85436 100644 --- a/plugin.video.alfa/lib/generictools.py +++ b/plugin.video.alfa/lib/generictools.py @@ -198,6 +198,9 @@ def post_tmdb_listado(item, itemlist): for item_local in itemlist: #Recorremos el Itenlist generado por el canal title = item_local.title #logger.debug(item_local) + + item_local.last_page = 0 + del item_local.last_page #Borramos restos de paginación if item_local.contentSeason_save: #Restauramos el num. de Temporada item_local.contentSeason = item_local.contentSeason_save @@ -710,9 +713,7 @@ def post_tmdb_findvideos(item, itemlist): title_gen = '%s: %s' % (item.category.capitalize(), title_gen) #Pintamos el pseudo-título con toda la información disponible del vídeo - item.action = "" - item.server = "" - itemlist.append(item.clone(title=title_gen)) #Título con todos los datos del vídeo + itemlist.append(item.clone(action="", server = "", title=title_gen)) #Título con todos los datos del vídeo #agregamos la opción de Añadir a Videoteca para péliculas (no series) if item.contentType == 'movie' and item.contentChannel != "videolibrary": From 16c637fc97b6fd7d36b2c919b5a53c08aff3a805 Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Fri, 13 Jul 2018 21:05:58 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Quasar:=20Marado=20autom=C3=A1tico=20de=20v?= =?UTF-8?q?=C3=ADdeos=20vistos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.video.alfa/platformcode/platformtools.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugin.video.alfa/platformcode/platformtools.py b/plugin.video.alfa/platformcode/platformtools.py index eafea016..b928e2db 100644 --- a/plugin.video.alfa/platformcode/platformtools.py +++ b/plugin.video.alfa/platformcode/platformtools.py @@ -1048,6 +1048,21 @@ def play_torrent(item, xlistitem, mediaurl): if seleccion > 1: mediaurl = urllib.quote_plus(item.url) xbmc.executebuiltin("PlayMedia(" + torrent_options[seleccion][1] % mediaurl + ")") + + if "quasar" in torrent_options[seleccion][1]: #Seleccionamos que clientes torrent soportamos + if item.strm_path: #Sólo si es de Videoteca + import time + time_limit = time.time() + 150 #Marcamos el timepo máx. de buffering + while not is_playing() and time.time() < time_limit: #Esperamos mientra buffera + time.sleep(5) #Repetimos cada intervalo + logger.debug(str(time_limit)) + + if is_playing(): #Ha terminado de bufferar o ha cancelado + from platformcode import xbmc_videolibrary + xbmc_videolibrary.mark_auto_as_watched(item) #Marcamos como visto al terminar + logger.debug("Llamado el marcado") + else: + logger.debug("Video cancelado o timeout") if seleccion == 1: from platformcode import mct