s/cover/folder/g

This commit is contained in:
ed 2021-06-12 03:06:56 +02:00
parent d53c212516
commit f156e00064
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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:

View file

@ -48,7 +48,6 @@ function MPlayer() {
this.au = null;
this.au_native = null;
this.au_ogvjs = null;
this.cover_url = '';
this.tracks = {};
this.order = [];