mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 19:44:49 +01:00
GwR fix for Kindle periodical management
This commit is contained in:
parent
95afd9e3bf
commit
56ae009598
1 changed files with 3 additions and 0 deletions
|
|
@ -813,6 +813,9 @@ def create_upload_path(self, path, mdata, fname, create_dirs=True):
|
|||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue