Quasar: marca videos vistos automáticamente
This commit is contained in:
@@ -1055,14 +1055,14 @@ def play_torrent(item, xlistitem, mediaurl):
|
|||||||
time_limit = time.time() + 150 #Marcamos el timepo máx. de buffering
|
time_limit = time.time() + 150 #Marcamos el timepo máx. de buffering
|
||||||
while not is_playing() and time.time() < time_limit: #Esperamos mientra buffera
|
while not is_playing() and time.time() < time_limit: #Esperamos mientra buffera
|
||||||
time.sleep(5) #Repetimos cada intervalo
|
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
|
if is_playing(): #Ha terminado de bufferar o ha cancelado
|
||||||
from platformcode import xbmc_videolibrary
|
from platformcode import xbmc_videolibrary
|
||||||
xbmc_videolibrary.mark_auto_as_watched(item) #Marcamos como visto al terminar
|
xbmc_videolibrary.mark_auto_as_watched(item) #Marcamos como visto al terminar
|
||||||
logger.debug("Llamado el marcado")
|
#logger.debug("Llamado el marcado")
|
||||||
else:
|
#else:
|
||||||
logger.debug("Video cancelado o timeout")
|
#logger.debug("Video cancelado o timeout")
|
||||||
|
|
||||||
if seleccion == 1:
|
if seleccion == 1:
|
||||||
from platformcode import mct
|
from platformcode import mct
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 515 KiB |
Reference in New Issue
Block a user