Add genre to index pages.
This commit is contained in:
parent
d3727a3d4e
commit
b0526243bb
1 changed files with 5 additions and 9 deletions
|
@ -63,10 +63,10 @@ title: Dosage comic %(name)s
|
||||||
<th>Website</th><td><a href="%(url)s">%(url)s</a></td>
|
<th>Website</th><td><a href="%(url)s">%(url)s</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Adult content</th><td>%(adult)s</td>
|
<th>Genre</th><td>%(genre)s</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Available since</th><td>Dosage v%(since)s</td>
|
<th>Adult content</th><td>%(adult)s</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Status</th><td>%(status)s on %(date)s</td>
|
<th>Status</th><td>%(status)s on %(date)s</td>
|
||||||
|
@ -117,7 +117,7 @@ def get_testinfo(filename, modified):
|
||||||
"url": string,
|
"url": string,
|
||||||
"description": string,
|
"description": string,
|
||||||
"error": string or None,
|
"error": string or None,
|
||||||
"since": string,
|
"genre": string,
|
||||||
"adult": bool,
|
"adult": bool,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,7 @@ def get_testentry(line):
|
||||||
"name": name,
|
"name": name,
|
||||||
"url": scraper.url,
|
"url": scraper.url,
|
||||||
"description": scraper.description,
|
"description": scraper.description,
|
||||||
|
"genre": "",
|
||||||
"error": None,
|
"error": None,
|
||||||
"adult": scraper.adult,
|
"adult": scraper.adult,
|
||||||
}
|
}
|
||||||
|
@ -174,11 +175,6 @@ def orphan_entries(keys, testinfo):
|
||||||
|
|
||||||
def update_testentry(key, entry, testinfo):
|
def update_testentry(key, entry, testinfo):
|
||||||
"""Update one entry with testinfo information."""
|
"""Update one entry with testinfo information."""
|
||||||
if key not in testinfo:
|
|
||||||
# add dosage version for this comic
|
|
||||||
entry["since"] = DosageVersion
|
|
||||||
else:
|
|
||||||
entry["since"] = testinfo[key]["since"]
|
|
||||||
testinfo[key] = entry
|
testinfo[key] = entry
|
||||||
|
|
||||||
|
|
||||||
|
@ -228,7 +224,7 @@ def write_html_comic(key, entry, outputdir, date):
|
||||||
"url": quote(entry["url"]),
|
"url": quote(entry["url"]),
|
||||||
"name": quote(entry["name"]),
|
"name": quote(entry["name"]),
|
||||||
"adult": quote("yes" if entry["adult"] else "no"),
|
"adult": quote("yes" if entry["adult"] else "no"),
|
||||||
"since": quote(entry["since"]),
|
"genre": quote(entry["genre"]),
|
||||||
"description": quote(entry["description"]),
|
"description": quote(entry["description"]),
|
||||||
"status": quote(entry["status"]),
|
"status": quote(entry["status"]),
|
||||||
"date": quote(date),
|
"date": quote(date),
|
||||||
|
|
Loading…
Reference in a new issue