From 38fd7372cc364a1cca0a6f6e119ed0891082a2d4 Mon Sep 17 00:00:00 2001 From: AppleTheGolden Date: Mon, 22 Sep 2025 17:01:24 +0200 Subject: [PATCH] Format with black --- copyparty/httpcli.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index fa699243..41412c62 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -6571,7 +6571,6 @@ class HttpCli(object): no_zip = bool(self._can_zip(vf)) - dirs = [] files = [] ptn_hr = RE_HR @@ -6852,7 +6851,9 @@ class HttpCli(object): allowed_exts = vf.get("opds_exts") or self.args.opds_exts if allowed_exts: - files = [x for x in files if x["name"].rsplit(".", 1)[-1] in allowed_exts] + files = [ + x for x in files if x["name"].rsplit(".", 1)[-1] in allowed_exts + ] for item in dirs: href = item["href"] href += ("&" if "?" in href else "?") + "opds" @@ -6888,10 +6889,10 @@ class HttpCli(object): # Make sure we can actually generate JPEG thumbnails if ( - not self.args.th_no_jpg - and self.thumbcli - and "dthumb" not in dbv.flags - and "dithumb" not in dbv.flags + not self.args.th_no_jpg + and self.thumbcli + and "dthumb" not in dbv.flags + and "dithumb" not in dbv.flags ): item["jpeg_thumb_href"] = href + "&th=jf" item["jpeg_thumb_href_hires"] = item["jpeg_thumb_href"] + "3"