06-sep: [fix] borrado NAS real (id plano + error por tarea), blqdev reconstruye lista, ayudas torrents
This commit is contained in:
@@ -600,7 +600,10 @@ def _mostrar_resultados(chat_id, message_id, tipo):
|
||||
"🧲 Elige el título para ver sus torrents:",
|
||||
teclado_resultados(titulos, "torrents"))
|
||||
else:
|
||||
_enviar_nuevo(chat_id, "Primero haz una <b>/busca</b> o usa <code>/torrents <n></code>.", None)
|
||||
_enviar_nuevo(chat_id, "Primero busca arriba con <b>🔎 Buscar</b>, "
|
||||
"<b>🎬 Película</b>, <b>📺 Serie</b> o "
|
||||
"<b>🆕 Novedades</b> y luego pulsa "
|
||||
"<b>🧲 Torrents…</b>.", None)
|
||||
return
|
||||
torrents = _txt("ultimos_torrents", chat_id)
|
||||
if torrents:
|
||||
@@ -608,7 +611,8 @@ def _mostrar_resultados(chat_id, message_id, tipo):
|
||||
f"⬇️ Elige torrent de «{torrents.get('titulo')}»:",
|
||||
teclado_resultados(torrents.get("torrents", []), "bajar"))
|
||||
else:
|
||||
_enviar_nuevo(chat_id, "Primero consulta <code>/torrents <n></code> de un título.", None)
|
||||
_enviar_nuevo(chat_id, "Primero elige un título en <b>🧲 Torrents…</b> "
|
||||
"y luego pulsa <b>⬇️ Bajar…</b>.", None)
|
||||
|
||||
|
||||
def _ejecutar_parental(chat_id, message_id, accion, nombre):
|
||||
@@ -688,6 +692,13 @@ def _ejecutar_accion(chat_id, message_id, partes):
|
||||
_record_cat(chat_id, "parental")
|
||||
lista = menu_dispositivos.get(chat_id) or []
|
||||
numero = int(sub) if sub.isdigit() else 0
|
||||
if not lista and numero:
|
||||
try:
|
||||
from asus_api_control import listar_dispositivos as _ld
|
||||
lista = _ld()
|
||||
menu_dispositivos[chat_id] = lista
|
||||
except Exception:
|
||||
lista = []
|
||||
if 1 <= numero <= len(lista):
|
||||
d = lista[numero - 1]
|
||||
try:
|
||||
@@ -702,6 +713,8 @@ def _ejecutar_accion(chat_id, message_id, partes):
|
||||
"📺 <b>Bloquear dispositivo</b>\nPulsa el número para "
|
||||
"bloquear/desbloquear:",
|
||||
teclado_dispositivos(lista))
|
||||
else:
|
||||
_mostrar_dispositivos(chat_id, message_id)
|
||||
return
|
||||
if accion == "mesilla":
|
||||
# sub: estado | nombre | nombre:accion
|
||||
|
||||
Reference in New Issue
Block a user