06-sep: [fix] handle genero action in menu, trigger genre flow directly
This commit is contained in:
@@ -701,12 +701,19 @@ def _ejecutar_accion(chat_id, message_id, partes):
|
|||||||
_reabrir(chat_id, message_id, "parental", "parental listar")
|
_reabrir(chat_id, message_id, "parental", "parental listar")
|
||||||
return
|
return
|
||||||
CAT_ACC = {
|
CAT_ACC = {
|
||||||
"ayuda": None, "genero": "videoclub", "novedades": "videoclub",
|
"ayuda": None, "novedades": "videoclub",
|
||||||
"descargas": "nas", "estado": "sistema", "temperatura": "sistema",
|
"descargas": "nas", "estado": "sistema", "temperatura": "temperatura",
|
||||||
"panorama": "sistema", "limpieza": "sistema", "limpiar": "sistema",
|
"panorama": "sistema", "limpieza": "sistema", "limpiar": "limpiar",
|
||||||
"aimesh": "sistema", "qos": "sistema", "limite": "sistema",
|
"aimesh": "sistema", "qos": "sistema", "limite": "limite listar",
|
||||||
"seguridad": "sistema",
|
"seguridad": "sistema",
|
||||||
}
|
}
|
||||||
|
if accion == "genero":
|
||||||
|
flujo_genero[chat_id] = "esperando_tipo"
|
||||||
|
flujo_genero_tipo.pop(chat_id, None)
|
||||||
|
enviar("🎭 Catálogo por <b>género</b> (30 más descargadas). Primero elige el tipo:\n"
|
||||||
|
"<b>1.</b> 🎬 Películas\n"
|
||||||
|
"<b>2.</b> 📺 Series\n\nResponde el <b>1</b> o el <b>2</b>.", chat_id)
|
||||||
|
return
|
||||||
if accion in directos:
|
if accion in directos:
|
||||||
_disp(chat_id, message_id, directos[accion], CAT_ACC.get(accion))
|
_disp(chat_id, message_id, directos[accion], CAT_ACC.get(accion))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user