mirror of
https://github.com/9001/copyparty.git
synced 2025-10-02 14:42:28 -06:00
Format with black
This commit is contained in:
parent
7559e7b2e6
commit
38fd7372cc
|
@ -6571,7 +6571,6 @@ class HttpCli(object):
|
||||||
|
|
||||||
no_zip = bool(self._can_zip(vf))
|
no_zip = bool(self._can_zip(vf))
|
||||||
|
|
||||||
|
|
||||||
dirs = []
|
dirs = []
|
||||||
files = []
|
files = []
|
||||||
ptn_hr = RE_HR
|
ptn_hr = RE_HR
|
||||||
|
@ -6852,7 +6851,9 @@ class HttpCli(object):
|
||||||
allowed_exts = vf.get("opds_exts") or self.args.opds_exts
|
allowed_exts = vf.get("opds_exts") or self.args.opds_exts
|
||||||
|
|
||||||
if allowed_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:
|
for item in dirs:
|
||||||
href = item["href"]
|
href = item["href"]
|
||||||
href += ("&" if "?" in href else "?") + "opds"
|
href += ("&" if "?" in href else "?") + "opds"
|
||||||
|
|
Loading…
Reference in a new issue