Add page for FF fics by wordcount, deal with spoilers in RSS feed, change wording in a few places

This commit is contained in:
trémeur 2023-07-07 21:01:13 +01:00
parent f2e67ef6c0
commit 33a5cf09a8
8 changed files with 67 additions and 5 deletions

View file

@ -187,7 +187,7 @@ def feedgen(local=False):
filewrite.write(" in this update")
filewrite.write(".")
try:
filewrite.write(" " + re.sub("<[^<]+?>", "", thefile.summary))
filewrite.write(" " + re.sub("<[^<]+?>","",re.sub("<span class=\"spoiler\">.*</span>","[spoiler]",thefile.summary)))
except:
filewrite.write(" No summary provided.")
try: