diff --git a/README.md b/README.md index a78d118e..e664a772 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,8 @@ click `[-]` and `[+]` to adjust the size, and the `[a]` toggles if the tree shou it does static images with Pillow and uses FFmpeg for video files, so you may want to `--no-thumb` or maybe just `--no-vthumb` depending on how destructive your users are +images named `folder.jpg` and `folder.png` become the thumbnail of the folder they're in + ## zip downloads diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index ce1c004f..26f5648d 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1539,7 +1539,7 @@ class HttpCli(object): th_fmt = self.uparam.get("th") if th_fmt is not None: if is_dir: - for fn in ["cover.png", "cover.jpg"]: + for fn in ["folder.png", "folder.jpg"]: fp = os.path.join(abspath, fn) if os.path.exists(fp): vrem = "{}/{}".format(vrem.rstrip("/"), fn) @@ -1547,7 +1547,7 @@ class HttpCli(object): break if is_dir: - return self.tx_ico("/") + return self.tx_ico("a.folder") thp = None if self.thumbcli: diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index c96b5b94..b96af090 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -48,7 +48,6 @@ function MPlayer() { this.au = null; this.au_native = null; this.au_ogvjs = null; - this.cover_url = ''; this.tracks = {}; this.order = [];