From e788f098e2d8dab5ba17a934d9177fd55b48e749 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 9 Oct 2022 00:38:56 +0200 Subject: [PATCH] dont fallback to icons for waveforms --- copyparty/httpcli.py | 3 +++ copyparty/th_cli.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 15c815da..1196f13e 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2532,6 +2532,9 @@ class HttpCli(object): if thp: return self.tx_file(thp) + if th_fmt == "p": + raise Pebkac(404) + return self.tx_ico(rem) if not is_dir and (self.can_read or self.can_get): diff --git a/copyparty/th_cli.py b/copyparty/th_cli.py index 5496ad47..473d1855 100644 --- a/copyparty/th_cli.py +++ b/copyparty/th_cli.py @@ -30,6 +30,8 @@ class ThumbCli(object): try: c = hsrv.th_cfg + if not c: + raise Exception() except: c = {k: {} for k in ["thumbable", "pil", "vips", "ffi", "ffv", "ffa"]}