From 41cca9e39bcce0a48b1604e442605ddb31df2201 Mon Sep 17 00:00:00 2001 From: AppleTheGolden Date: Tue, 9 Sep 2025 22:40:16 +0200 Subject: [PATCH] opds1 -> opds --- copyparty/httpcli.py | 8 ++++---- copyparty/httpsrv.py | 2 +- copyparty/web/{opds1.html => opds.html} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename copyparty/web/{opds1.html => opds.html} (100%) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 1fdc2a26..33f859e7 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -6225,7 +6225,7 @@ class HttpCli(object): add_og = "og" in vn.flags if add_og: - if "th" in self.uparam or "raw" in self.uparam or "opds1" in self.uparam: + if "th" in self.uparam or "raw" in self.uparam or "opds" in self.uparam: add_og = False elif vn.flags["og_ua"]: add_og = vn.flags["og_ua"].search(self.ua) @@ -6440,14 +6440,14 @@ class HttpCli(object): if "b" in self.uparam: tpl = "browser2" is_js = False - elif "opds1" in self.uparam: + elif "opds" in self.uparam: # Display directory listing as OPDS v1.2 catalog feed if not (self.args.opds or "opds" in self.vn.flags): raise Pebkac(405, "OPDS is disabled in server config") if not self.can_read: raise Pebkac(401, "OPDS requires read permission") is_opds = True - tpl = "opds1" + tpl = "opds" is_js = False vf = vn.flags @@ -6671,7 +6671,7 @@ class HttpCli(object): mime = None if is_opds: href += "&" if "?" in href else "?" - href += "opds1" + href += "opds" if not is_dir: if "rmagic" in self.vn.flags: mime = guess_mime(fn, fspath) diff --git a/copyparty/httpsrv.py b/copyparty/httpsrv.py index 6fcb99e1..617d5b49 100644 --- a/copyparty/httpsrv.py +++ b/copyparty/httpsrv.py @@ -185,7 +185,7 @@ class HttpSrv(object): "shares", "splash", "svcs", - "opds1", # TODO: not actually html + "opds", # TODO: not actually html ] self.j2 = {x: env.get_template(x + ".html") for x in jn} self.prism = has_resource(self.E, "web/deps/prism.js.gz") diff --git a/copyparty/web/opds1.html b/copyparty/web/opds.html similarity index 100% rename from copyparty/web/opds1.html rename to copyparty/web/opds.html