06-sep: [fix] handle genero action in menu, trigger genre flow directly
This commit is contained in:
@@ -700,13 +700,20 @@ def _ejecutar_accion(chat_id, message_id, partes):
|
||||
if accion == "parental_listar":
|
||||
_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",
|
||||
CAT_ACC = {
|
||||
"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
|
||||
|
||||
Reference in New Issue
Block a user