From c122e103bd7440e28aa455e2fc9b9a45dc577ed1 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 27 Jul 2026 18:45:35 +0000 Subject: [PATCH] hooks: xar/xbr: old/new ap --- copyparty/up2k.py | 6 +++--- copyparty/util.py | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index bedfebd2..e5375db9 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -4735,7 +4735,7 @@ class Up2k(object): fsize, ip, time.time(), - None, + [dabs], ) t = hr.get("rejectmsg") or "" if t or hr.get("rc") != 0: @@ -4778,7 +4778,7 @@ class Up2k(object): fsize, ip, time.time(), - None, + [sabs], ) return "k" @@ -4908,7 +4908,7 @@ class Up2k(object): fsize, ip, time.time(), - None, + [sabs], ) return "k" diff --git a/copyparty/util.py b/copyparty/util.py index 8cd45e4a..c6c96e2e 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -4226,6 +4226,10 @@ def _runhook( if src in ("xm", "xban"): ja["txt"] = txt[0] ja["body"] = txt[1] + elif src == "xbr": + ja["ap_to"] = txt[0] + elif src in ("xar.ln", "xar.mv"): + ja["ap_from"] = txt[0] else: ja["wark"] = txt[0] # acshually the dwark but less confusing if imp: