06-sep: [fix] handle genero action in menu, trigger genre flow directly

This commit is contained in:
juanjo
2026-09-06 19:34:54 +02:00
parent 94c967c343
commit 09e8f1d9c3

View File

@@ -701,12 +701,19 @@ def _ejecutar_accion(chat_id, message_id, partes):
_reabrir(chat_id, message_id, "parental", "parental listar")
return
CAT_ACC = {
"ayuda": None, "genero": "videoclub", "novedades": "videoclub",
"descargas": "nas", "estado": "sistema", "temperatura": "sistema",
"panorama": "sistema", "limpieza": "sistema", "limpiar": "sistema",
"aimesh": "sistema", "qos": "sistema", "limite": "sistema",
"ayuda": None, "novedades": "videoclub",
"descargas": "nas", "estado": "sistema", "temperatura": "temperatura",
"panorama": "sistema", "limpieza": "sistema", "limpiar": "limpiar",
"aimesh": "sistema", "qos": "sistema", "limite": "limite listar",
"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:
_disp(chat_id, message_id, directos[accion], CAT_ACC.get(accion))
return