diff options
author | Solderpunk <solderpunk@sdf.org> | 2020-03-18 18:14:28 +0100 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2020-03-18 18:14:28 +0100 |
commit | d43bd2b0bf115b89c6bd99ca9b8377d740bb2442 (patch) | |
tree | 316470b19d72765cbdd7c931bdc72844b087d121 | |
parent | 08ba6b0ff2d336a54437c48a32c859f9cb29da35 (diff) |
Add trailing slash to base URL if necessary.
-rw-r--r-- | gemfeed.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -189,6 +189,8 @@ def main(): base_url = base_url._replace(netloc=base_url.path, path="") base_url = base_url._replace(scheme="gemini") args.base_url = urllib.parse.urlunsplit(base_url) + if not args.base_url.endswith("/"): + args.base_url += "/" # Build the feed build_feed(args.directory, args.base_url, args.output, args.n, args.title, |