Replace old pages with new ones

This commit is contained in:
mez 2025-07-19 23:32:29 +01:00
parent d374cf9690
commit 219ab35571
32 changed files with 509 additions and 3698 deletions

20
feed.py
View file

@ -107,15 +107,6 @@ def feedgen(local=False):
filewrite.write(", " + ", ".join(origread.charmain))
except:
pass
if origread.rating == "g":
therating = "U"
elif origread.rating == "t":
therating = "G+"
elif origread.rating == "m":
therating = "M"
elif origread.rating == "e":
therating = "X"
filewrite.write(", rated " + therating)
if len(origread.genre) > 1:
genred = False
for thegenre in origread.genre:
@ -141,15 +132,6 @@ def feedgen(local=False):
filewrite.write(", " + ", ".join(thefile.charmain))
except:
pass
if thefile.rating == "g":
therating = "U"
elif thefile.rating == "t":
therating = "G+"
elif thefile.rating == "m":
therating = "M"
elif thefile.rating == "e":
therating = "X"
filewrite.write(", rated " + therating)
if len(thefile.genre) > 1:
genred = False
for thegenre in thefile.genre:
@ -166,7 +148,7 @@ def feedgen(local=False):
filewrite.write("/home/mdd/Documents/proj/fic-archive/build/")
else:
filewrite.write("https://tre.praze.net/fic/")
filewrite.write("single/" + ficcountstring)
filewrite.write(ficcountstring)
if local:
filewrite.write("/index.html")
filewrite.write("</link>\n<guid isPermaLink=\"false\">praze-fic-" + ficcountstring)