Quasar: marca videos vistos automáticamente

This commit is contained in:
Kingbox
2018-07-18 22:13:32 +02:00
parent a8f27d1508
commit ae96c2177d
2 changed files with 4 additions and 4 deletions

View File

@@ -1055,14 +1055,14 @@ def play_torrent(item, xlistitem, mediaurl):
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))
#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")
#logger.debug("Llamado el marcado")
#else:
#logger.debug("Video cancelado o timeout")
if seleccion == 1:
from platformcode import mct

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 KiB