Make AO3 slug optional in the template; correct links to translated fics in RSS feed

master
trémeur 2 years ago
parent 92a982c833
commit 909ba4749c

@ -167,7 +167,12 @@ def feedgen(local=False):
filewrite.write("/home/mdd/Documents/drive/proj/fic-archive/build/masterlist/index.html") filewrite.write("/home/mdd/Documents/drive/proj/fic-archive/build/masterlist/index.html")
else: else:
filewrite.write("https://tre.praze.net/fic/masterlist") filewrite.write("https://tre.praze.net/fic/masterlist")
filewrite.write("#fic" + ficcountstring + "</link>\n<guid isPermaLink=\"false\">praze-fic-" + ficcountstring) filewrite.write("#fic")
try:
filewrite.write(str(thefile.original))
except:
filewrite.write(ficcountstring)
filewrite.write("</link>\n<guid isPermaLink=\"false\">praze-fic-" + ficcountstring)
datecount = 0 datecount = 0
dateindex = 0 dateindex = 0
for instalment in thefile.datewords: for instalment in thefile.datewords:

@ -34,7 +34,7 @@ location = [""]
# recippseud = "" # recippseud = ""
# recipsite = "" # ao3, dw, tumblr # recipsite = "" # ao3, dw, tumblr
locked = False locked = False
ao3slug = # ao3slug =
# ao3locked = # ao3locked =
html = True html = True
pdf = True pdf = True

Loading…
Cancel
Save