Add option for locking fics on AO3 but not here

master
trémeur 2 years ago
parent 6b32fb0048
commit 92a982c833

@ -401,8 +401,12 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
try: try:
if fileread.ao3slug: if fileread.ao3slug:
filewrite.write("<li class=\"ao3link\"><a ") filewrite.write("<li class=\"ao3link\"><a ")
if fileread.locked: try:
filewrite.write("class=\"locked\" ") if fileread.ao3locked:
filewrite.write("class=\"locked\" ")
except:
if fileread.locked:
filewrite.write("class=\"locked\" ")
filewrite.write("href=\"https://archiveofourown.org/works/" + str(fileread.ao3slug) + "\">AO3</a></li>\n") filewrite.write("href=\"https://archiveofourown.org/works/" + str(fileread.ao3slug) + "\">AO3</a></li>\n")
except: except:
pass pass

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

Loading…
Cancel
Save