self.status[cast]["timestamp"] = now.strftime("%Y-%m-%d %H:%M:%S")
# TODO Detectar fin de transmision en chromecasts existentes
# Si al terminar el loop, no tengo algunos datos, borro el registro
# if listener.cast.is_idle:
# del self.status[cast]
def atender(self, wsock):
"""Funcion para atender los mensajes del WebSocket
Detectar fin de transmision en chromecasts existentes
Si al terminar el loop, no tengo algunos datos, borro el registro
if listener.cast.is_idle:
del self.status[cast]
https://github.com/pablosambuco/CastStatusServer/blob/7b3621f6e5a604a0e7264a72b3a1a7b6a3632fbc/caststatusserver.py#L185
38383d4c5defaec66290dc10bdc243cce41b68df