Make downloader use string literals for issue IDs
This commit is contained in:
parent
bde9d104cf
commit
49cfd3c8f6
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue