Skip to content

Commit

Permalink
Fix some more weird character issues
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Jul 24, 2012
1 parent e685662 commit 90f4ccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion books.py
Expand Up @@ -22,6 +22,7 @@
u"‘": u"'",
u"—": u" - ",
u"…": u"-",
u"": u"",
}

series = dict([(s.name,s) for s in db.series])
Expand Down Expand Up @@ -117,7 +118,7 @@
</html>""")
toc.close()
if newitems or not exists(folder + ".mobi"):
cmd = "rm -f book.zip && zip -j book.zip %s/* && ebook-convert book.zip \"%s.mobi\" --output-profile kindle --margin-top 0 --margin-bottom 0 --margin-left 0 --authors=\"%s\"" %(folder.replace(" ", "\\ "), folder, s.author)
cmd = "rm -f book.zip && zip -j book.zip %s/* && ebook-convert book.zip \"%s.mobi\" --output-profile kindle --margin-top 0 --margin-bottom 0 --margin-left 0 --authors=\"%s\" --input-encoding=utf-8" %(folder.replace(" ", "\\ "), folder, s.author)
print cmd
system(cmd)

Expand Down

0 comments on commit 90f4ccd

Please sign in to comment.