02-ago: [proyecto] vigilancia - fix anuncio_simple (desempaquetado de _url_audio) + despliegue en Pi
This commit is contained in:
@@ -326,9 +326,10 @@ def anuncio_simple(texto):
|
|||||||
"""Mensaje rapido: enciende, reproduce el mensaje una vez y apaga."""
|
"""Mensaje rapido: enciende, reproduce el mensaje una vez y apaga."""
|
||||||
if not config.GOOGLE_TV_ACTIVO:
|
if not config.GOOGLE_TV_ACTIVO:
|
||||||
return
|
return
|
||||||
url_mensaje, tipo = _url_audio(texto)
|
url_mensaje = _url_audio(texto)
|
||||||
if url_mensaje is None:
|
if url_mensaje is None:
|
||||||
return
|
return
|
||||||
|
tipo = "audio/mpeg"
|
||||||
try:
|
try:
|
||||||
import pychromecast
|
import pychromecast
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user