From 22cdc0f8c98e6be3ef5573a273b78c0def853192 Mon Sep 17 00:00:00 2001 From: stackxp <170874486+stackxp@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:28:21 +0100 Subject: [PATCH] remove `nth` and fix `nih` description (#1257) Co-authored-by: ed --- copyparty/__main__.py | 5 ++--- copyparty/web/browser.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 1ae4eec8..2e2c5080 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -1558,9 +1558,8 @@ def add_optouts(ap): ap2.add_argument("--no-mv", action="store_true", help="disable move/rename operations") ap2.add_argument("--no-cp", action="store_true", help="disable copy operations") ap2.add_argument("--no-fs-abrt", action="store_true", help="disable ability to abort ongoing copy/move") - ap2.add_argument("-nth", action="store_true", help="no title hostname; don't show \033[33m--name\033[0m in ") - ap2.add_argument("-nih", action="store_true", help="no info hostname -- don't show in UI") - ap2.add_argument("-nid", action="store_true", help="no info disk-usage -- don't show in UI. This is the same as --du-who no") + ap2.add_argument("-nih", action="store_true", help="no info hostname -- removes it from the UI corner, but the value of \033[33m--bname\033[0m still shows in the browsertab title") + ap2.add_argument("-nid", action="store_true", help="no info disk-usage -- don't show in UI. This is the same as \033[33m--du-who no\033[0m") ap2.add_argument("-nb", action="store_true", help="no powered-by-copyparty branding in UI") ap2.add_argument("--smsg", metavar="T,T", type=u, default="POST", help="HTTP-methods to allow ?smsg for; will execute xm hooks like urlform / message-to-serverlog; dangerous example: [\033[32mGET,POST\033[0m]. \033[1;31mWARNING:\033[0m The default (POST) is safe, but GET is dangerous; security/CSRF hazard") ap2.add_argument("--zipmaxn", metavar="N", type=u, default="0", help="reject download-as-zip if more than \033[33mN\033[0m files in total; optionally takes a unit suffix: [\033[32m256\033[0m], [\033[32m9K\033[0m], [\033[32m4G\033[0m] (volflag=zipmaxn)") diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index a616694d..51ca817b 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -9395,7 +9395,7 @@ function wintitle(txt, noname) { txt += uricom_dec(get_evpath()).slice(1, -1).split('/').pop(); - document.title = txt; + document.title = txt || "copyparty"; }