Make downloader use string literals for issue IDs

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-08 23:52:34 +01:00
parent bde9d104cf
commit 49cfd3c8f6

View file

@ -12,14 +12,14 @@ def makeDir(issue):
return False
def makePDF(issue, pages):
cover = PIL.Image.open("%i/1.jpg" % issue)
cover = PIL.Image.open("%s/1.jpg" % str(issue))
x, y = cover.size
pdf = fpdf.FPDF(unit = "pt", format = [x, y])
for page in range(pages):
pdf.add_page()
pdf.image("%i/%i.jpg" % (issue, page + 1), 0, 0)
pdf.image("%s/%i.jpg" % (str(issue), page + 1), 0, 0)
pdf.output("%i/issue.pdf" % issue, "F")
pdf.output("%s/issue.pdf" % str(issue), "F")