summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gemfeed.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gemfeed.py b/gemfeed.py
index 41bca57..23dc007 100644
--- a/gemfeed.py
+++ b/gemfeed.py
@@ -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,