|
|
@ -34,11 +34,15 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
|
|
|
|
fandom = "/".join(origfile.fandom)
|
|
|
|
fandom = "/".join(origfile.fandom)
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
fandom = "/".join(fileread.fandom)
|
|
|
|
fandom = "/".join(fileread.fandom)
|
|
|
|
|
|
|
|
thechars = ""
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if "OW" not in origfile.fandom:
|
|
|
|
if "OW" not in origfile.fandom:
|
|
|
|
|
|
|
|
if "gen" not in origfile.genre:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
thechars = origfile.ship[0]
|
|
|
|
thechars = origfile.ship[0]
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
else:
|
|
|
|
chars = []
|
|
|
|
chars = []
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
chars.extend(origfile.charpov)
|
|
|
|
chars.extend(origfile.charpov)
|
|
|
@ -56,9 +60,12 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
|
|
|
|
thechars = ""
|
|
|
|
thechars = ""
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
if "OW" not in fileread.fandom:
|
|
|
|
if "OW" not in fileread.fandom:
|
|
|
|
|
|
|
|
if "gen" not in fileread.genre:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
thechars = fileread.ship[0]
|
|
|
|
thechars = fileread.ship[0]
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
else:
|
|
|
|
chars = []
|
|
|
|
chars = []
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
chars.extend(fileread.charpov)
|
|
|
|
chars.extend(fileread.charpov)
|
|
|
@ -74,6 +81,8 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
|
|
|
|
thechars = ""
|
|
|
|
thechars = ""
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
thechars = ""
|
|
|
|
thechars = ""
|
|
|
|
|
|
|
|
if thechars == "":
|
|
|
|
|
|
|
|
thechars = "no characters specified"
|
|
|
|
if fileread.language == "fr":
|
|
|
|
if fileread.language == "fr":
|
|
|
|
language = "French"
|
|
|
|
language = "French"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
@ -82,10 +91,35 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
|
|
|
|
rating = origfile.rating
|
|
|
|
rating = origfile.rating
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
rating = fileread.rating
|
|
|
|
rating = fileread.rating
|
|
|
|
|
|
|
|
genre = []
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
genre = origfile.genre[0]
|
|
|
|
for thegenre in origfile.genre:
|
|
|
|
|
|
|
|
if thegenre == "gen":
|
|
|
|
|
|
|
|
genre.append(thegenre)
|
|
|
|
|
|
|
|
elif thegenre == "het" or thegenre == "pre-het":
|
|
|
|
|
|
|
|
genre.append("het")
|
|
|
|
|
|
|
|
elif thegenre == "slash" or thegenre == "pre-slash" or thegenre == "poly slash":
|
|
|
|
|
|
|
|
genre.append("slash")
|
|
|
|
|
|
|
|
elif thegenre == "femslash":
|
|
|
|
|
|
|
|
genre.append("femslash")
|
|
|
|
|
|
|
|
elif thegenre == "poly":
|
|
|
|
|
|
|
|
genre.append("multi")
|
|
|
|
|
|
|
|
elif thegenre == "masturbation":
|
|
|
|
|
|
|
|
genre.append("other")
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
genre = fileread.genre[0]
|
|
|
|
for thegenre in fileread.genre:
|
|
|
|
|
|
|
|
if thegenre == "gen":
|
|
|
|
|
|
|
|
genre.append(thegenre)
|
|
|
|
|
|
|
|
elif thegenre == "het" or thegenre == "pre-het":
|
|
|
|
|
|
|
|
genre.append("het")
|
|
|
|
|
|
|
|
elif thegenre == "slash" or thegenre == "pre-slash" or thegenre == "poly slash":
|
|
|
|
|
|
|
|
genre.append("slash")
|
|
|
|
|
|
|
|
elif thegenre == "femslash":
|
|
|
|
|
|
|
|
genre.append("femslash")
|
|
|
|
|
|
|
|
elif thegenre == "poly":
|
|
|
|
|
|
|
|
genre.append("multi")
|
|
|
|
|
|
|
|
elif thegenre == "masturbation":
|
|
|
|
|
|
|
|
genre.append("other")
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if origfile.warnings:
|
|
|
|
if origfile.warnings:
|
|
|
|
warnings = "?!"
|
|
|
|
warnings = "?!"
|
|
|
@ -130,16 +164,19 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
|
|
|
|
ficstring += " <span style=\"background-color:#eb7d10;color:white; font-family:serif\"> M </span>"
|
|
|
|
ficstring += " <span style=\"background-color:#eb7d10;color:white; font-family:serif\"> M </span>"
|
|
|
|
elif rating == "e":
|
|
|
|
elif rating == "e":
|
|
|
|
ficstring += " <span style=\"background-color:#9c0000;color:white; font-family:serif\"> E </span>"
|
|
|
|
ficstring += " <span style=\"background-color:#9c0000;color:white; font-family:serif\"> E </span>"
|
|
|
|
if genre == "gen":
|
|
|
|
for thegenre in genre:
|
|
|
|
|
|
|
|
if thegenre == "gen":
|
|
|
|
ficstring += " <span style=\"background-color:#8ab60b;color:white; font-family:serif\"> ☉ </span>"
|
|
|
|
ficstring += " <span style=\"background-color:#8ab60b;color:white; font-family:serif\"> ☉ </span>"
|
|
|
|
elif genre == "slash" or genre == "pre-slash" or genre == "poly slash":
|
|
|
|
elif thegenre == "slash":
|
|
|
|
ficstring += " <span style=\"background-color:#1256b6;color:white; font-family:serif\"> ♂ </span>"
|
|
|
|
ficstring += " <span style=\"background-color:#1256b6;color:white; font-family:serif\"> ♂ </span>"
|
|
|
|
elif genre == "het" or genre == "pre-het":
|
|
|
|
elif thegenre == "het":
|
|
|
|
ficstring += " <span style=\"background-color:#670840;color:white; font-family:serif\"> ⚤ </span>"
|
|
|
|
ficstring += " <span style=\"background-color:#670840;color:white; font-family:serif\"> ⚤ </span>"
|
|
|
|
elif genre == "femslash":
|
|
|
|
elif thegenre == "femslash":
|
|
|
|
ficstring += " <span style=\"background-color:#d50636;color:white; font-family:serif\"> ♀ </span>"
|
|
|
|
ficstring += " <span style=\"background-color:#d50636;color:white; font-family:serif\"> ♀ </span>"
|
|
|
|
elif genre == "poly":
|
|
|
|
elif thegenre == "poly":
|
|
|
|
ficstring += " <span><span style=\"background:linear-gradient(0deg, rgba(160,0,24,1) 0%, rgba(160,0,24,1) 49%, rgba(171,203,0,1) 50%, rgba(171,203,0,1) 100%);\"> </span><span style=\"background: linear-gradient(0deg, rgba(0,51,148,1) 0%, rgba(0,51,148,1) 49%, rgba(129,0,108,1) 50%, rgba(129,0,108,1) 100%);\"> </span></span>"
|
|
|
|
ficstring += " <span><span style=\"background:linear-gradient(0deg, rgba(160,0,24,1) 0%, rgba(160,0,24,1) 49%, rgba(171,203,0,1) 50%, rgba(171,203,0,1) 100%);\"> </span><span style=\"background: linear-gradient(0deg, rgba(0,51,148,1) 0%, rgba(0,51,148,1) 49%, rgba(129,0,108,1) 50%, rgba(129,0,108,1) 100%);\"> </span></span>"
|
|
|
|
|
|
|
|
elif thegenre == "other":
|
|
|
|
|
|
|
|
ficstring += " <span style=\"background-color:black;color:white; font-family:serif\"> ☿ </span>"
|
|
|
|
if warnings:
|
|
|
|
if warnings:
|
|
|
|
ficstring += " <span style=\"background-color:#eb7d10;color:white; font-family:serif\"> !<small>?</small> </span>"
|
|
|
|
ficstring += " <span style=\"background-color:#eb7d10;color:white; font-family:serif\"> !<small>?</small> </span>"
|
|
|
|
ficstring += " <code>" + str(words) + "</code>"
|
|
|
|
ficstring += " <code>" + str(words) + "</code>"
|
|
|
|