From 29e145f5e48372701b6805bc6901257a5959ed6e Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 9 Jul 2026 19:07:18 +0000 Subject: [PATCH] rlo always unless no or blank --- copyparty/__main__.py | 2 +- copyparty/svchub.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 8e837cc4..b3904031 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -1042,7 +1042,7 @@ def get_sects(): .1 = when necessary, append a dot followed by a single digit .1! = counter is always added, even when not necessary -3 = a hyphen followed by three-digit counter - (blank) = disable counter; overwrite existing logfile + no = disable counter; overwrite existing logfile """ ), ], diff --git a/copyparty/svchub.py b/copyparty/svchub.py index 4b653ce8..66bff686 100644 --- a/copyparty/svchub.py +++ b/copyparty/svchub.py @@ -233,9 +233,10 @@ class SvcHub(object): self.lo1 = self.lo2 = "" if args.lo: - if "%" in args.lo and "%R" not in args.lo: + if "%R" not in args.lo: args.lo += "%R" - if not args.rlo: + if args.rlo in ("", "no"): + args.rlo = "" args.lo = args.lo.replace("%R", "") try: self.lo1, self.lo2 = args.lo.split("%R")