Fix #5271 (Periodicals generated by calibre not using kindle back issue archiving)

This commit is contained in:
Kovid Goyal 2010-04-11 22:36:16 +05:30
commit 5e99b00b47

View File

@ -813,6 +813,9 @@ class Device(DeviceConfig, DevicePlugin):
settings = self.settings()
template = self.save_template()
if mdata.tags and _('News') in mdata.tags:
today = time.localtime()
template = "{title}_%d-%d-%d" % (today[0], today[1], today[2])
use_subdirs = self.SUPPORTS_SUB_DIRS and settings.use_subdirs
fname = sanitize(fname)