Add option for locking fics on AO3 but not here
This commit is contained in:
parent
6b32fb0048
commit
92a982c833
2 changed files with 8 additions and 3 deletions
|
@ -401,8 +401,12 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
|
|||
try:
|
||||
if fileread.ao3slug:
|
||||
filewrite.write("<li class=\"ao3link\"><a ")
|
||||
if fileread.locked:
|
||||
filewrite.write("class=\"locked\" ")
|
||||
try:
|
||||
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")
|
||||
except:
|
||||
pass
|
||||
|
|
|
@ -34,7 +34,8 @@ location = [""]
|
|||
# recippseud = ""
|
||||
# recipsite = "" # ao3, dw, tumblr
|
||||
locked = False
|
||||
ao3slug =
|
||||
ao3slug =
|
||||
# ao3locked =
|
||||
html = True
|
||||
pdf = True
|
||||
epub = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue