mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-10 11:40:24 +08:00
It seems that self.numWords and self.numChapters can on occasion be numeric instead of string, so use the str() function when building the string for the title page.
This commit is contained in:
@@ -258,7 +258,7 @@ class EPubFanficWriter(FanficWriter):
|
||||
self._writeFile(titleFilePath, TITLE_ENTRY % ('Packaged:', createda))
|
||||
tmpstr = self.adapter.getStoryRating() + " / " + self.adapter.getStoryUserRating()
|
||||
self._writeFile(titleFilePath, TITLE_ENTRY % ('Rating Age/User:', tmpstr))
|
||||
tmpstr = self.adapter.getNumChapters() + " / " + self.adapter.getNumWords()
|
||||
tmpstr = str(self.adapter.getNumChapters()) + " / " + str(self.adapter.getNumWords())
|
||||
self._writeFile(titleFilePath, TITLE_ENTRY % ('Chapters/Words:', tmpstr))
|
||||
self._writeFile(titleFilePath, TITLE_ENTRY % ('Publisher:', self.adapter.getHost()))
|
||||
self._writeFile(titleFilePath, TITLE_ENTRY % ('Story ID:', self.adapter.getStoryId()))
|
||||
|
||||
Reference in New Issue
Block a user