From 08628609613c6a41e957832f24fbe718073040a1 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 6 Jul 2022 00:00:56 +0200 Subject: [PATCH] misc cleanup --- README.md | 15 ++++++++++++--- bin/mtag/cksum.py | 2 +- copyparty/mtag.py | 2 +- docs/changelog.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 382339eb..f6c3cb26 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ try the **[read-only demo server](https://a.ocv.me/pub/demo/)** 👀 running fro * [tabs](#tabs) - the main tabs in the ui * [hotkeys](#hotkeys) - the browser has the following hotkeys * [navpane](#navpane) - switching between breadcrumbs or navpane - * [thumbnails](#thumbnails) - press `g` to toggle grid-view instead of the file listing + * [thumbnails](#thumbnails) - press `g` or `田` to toggle grid-view instead of the file listing * [zip downloads](#zip-downloads) - download folders (or file selections) as `zip` or `tar` files * [uploading](#uploading) - drag files/folders into the web-browser to upload * [file-search](#file-search) - dropping files into the browser also lets you see if they exist on the server @@ -848,8 +848,17 @@ see the top of [./copyparty/web/browser.css](./copyparty/web/browser.css) where ## complete examples -* read-only music server with bpm and key scanning - `python copyparty-sfx.py -v /mnt/nas/music:/music:r -e2dsa -e2ts -mtp .bpm=f,audio-bpm.py -mtp key=f,audio-key.py` +* read-only music server + `python copyparty-sfx.py -v /mnt/nas/music:/music:r -e2dsa -e2ts --no-robots --force-js` + + * ...with bpm and key scanning + `-mtp .bpm=f,audio-bpm.py -mtp key=f,audio-key.py` + + * ...with a read-write folder for `kevin` whose password is `okgo` + `-a kevin:okgo -v /mnt/nas/inc:/inc:rw,kevin` + + * ...with logging to disk + `-lo log/cpp-%Y-%m%d-%H%M%S.txt.xz` # browser support diff --git a/bin/mtag/cksum.py b/bin/mtag/cksum.py index c70a1b87..94b22f74 100755 --- a/bin/mtag/cksum.py +++ b/bin/mtag/cksum.py @@ -17,7 +17,7 @@ except: """ calculates various checksums for uploads, -usage: -mtp crc32,md5,sha1,sha256b=bin/mtag/cksum.py +usage: -mtp crc32,md5,sha1,sha256b=ad,bin/mtag/cksum.py """ diff --git a/copyparty/mtag.py b/copyparty/mtag.py index 100f8406..0fd8caa4 100644 --- a/copyparty/mtag.py +++ b/copyparty/mtag.py @@ -10,7 +10,7 @@ import sys from .__init__ import PY2, WINDOWS, unicode from .bos import bos -from .util import REKOBO_LKEY, fsenc, retchk, runcmd, uncyg, min_ex +from .util import REKOBO_LKEY, fsenc, min_ex, retchk, runcmd, uncyg try: from typing import Any, Union diff --git a/docs/changelog.md b/docs/changelog.md index 6505a6da..434acd16 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,48 @@ +▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ +# 2022-0627-2057 `v1.3.3` sdcardfs + +* **new:** read-only demo server at https://a.ocv.me/pub/demo/ +* latest gzip edition of the sfx: [v1.0.14](https://github.com/9001/copyparty/releases/tag/v1.0.14#:~:text=release-specific%20notes) + +## bugfixes +* **upload:** downgrade filenames to ascii if the server filesystem requires it + * **android fix:** external sdcard seems to be UCS-2 which can't into emojis +* **upload:** accurate detection of support for sparse files + * now based on filesystem behavior rather than a list of known filesystems + * **android fix:** all storage is `sdcardfs` so the list wasn't good enough +* **ux:** custom css/js did not apply to write-only folders + + + +▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ +# 2022-0619-2331 `v1.3.2` think im out of titles + +* **new:** read-only demo server at https://a.ocv.me/pub/demo/ +* latest gzip edition of the sfx: [v1.0.14](https://github.com/9001/copyparty/releases/tag/v1.0.14#:~:text=release-specific%20notes) + +## new features +* new option `--thickfs` to modify the list of filesystems that dont support sparse files + * default should catch most usual cases but I probably missed some +* detect and warn if filesystem was expected to support sparse files yet doesn't + +## bugfixes +* nonsparse: ensure chunks are flushed on linux as well +* switching between documents +* ctrl-clicking a breadcrumb entry didn't open a new tab as expected +* renaming files based on artist/title/etc tags would create subdirectories if tags contained `/` + * not dangerous -- the server correctly prevented any path traversals -- just unexpected +* markdown stuff + * numbered lists appeared as bullet-lists + * don't crash if a plugin sets a buggy timer + * plugins didn't run when viewing `README.md` inline + +## other changes +* in the `-ss` safety preset, replace `no-dot-mv, no-dot-ren` with `no-logues, no-readme` +* audio player continues into the next folder by default + + + + ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ # 2022-0616-1956 `v1.3.1` types