From 909ba4749c958565e69aac6487360b9c48d652de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Fri, 30 Jun 2023 08:32:06 +0100 Subject: [PATCH] Make AO3 slug optional in the template; correct links to translated fics in RSS feed --- feed.py | 7 ++++++- originalsmeta/template.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/feed.py b/feed.py index 1cf4e26..96e42dd 100644 --- a/feed.py +++ b/feed.py @@ -167,7 +167,12 @@ def feedgen(local=False): filewrite.write("/home/mdd/Documents/drive/proj/fic-archive/build/masterlist/index.html") else: filewrite.write("https://tre.praze.net/fic/masterlist") - filewrite.write("#fic" + ficcountstring + "\npraze-fic-" + ficcountstring) + filewrite.write("#fic") + try: + filewrite.write(str(thefile.original)) + except: + filewrite.write(ficcountstring) + filewrite.write("\npraze-fic-" + ficcountstring) datecount = 0 dateindex = 0 for instalment in thefile.datewords: diff --git a/originalsmeta/template.py b/originalsmeta/template.py index 7f52a0b..755cab2 100644 --- a/originalsmeta/template.py +++ b/originalsmeta/template.py @@ -34,7 +34,7 @@ location = [""] # recippseud = "" # recipsite = "" # ao3, dw, tumblr locked = False -ao3slug = +# ao3slug = # ao3locked = html = True pdf = True