mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
WIP - conform epub metadata with calibre
This commit is contained in:
parent
7c7b91c22c
commit
b8018f59f2
@ -1305,6 +1305,8 @@ class ITUNES(DriverBase):
|
|||||||
if DEBUG:
|
if DEBUG:
|
||||||
self.log.info(" ITUNES._add_new_copy()")
|
self.log.info(" ITUNES._add_new_copy()")
|
||||||
|
|
||||||
|
self._update_epub_metadata(fpath, metadata)
|
||||||
|
|
||||||
db_added = None
|
db_added = None
|
||||||
lb_added = None
|
lb_added = None
|
||||||
|
|
||||||
@ -2663,6 +2665,7 @@ class ITUNES(DriverBase):
|
|||||||
metadata.timestamp = now()
|
metadata.timestamp = now()
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
self.log.info(" add timestamp: %s" % metadata.timestamp)
|
self.log.info(" add timestamp: %s" % metadata.timestamp)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
metadata.timestamp = now()
|
metadata.timestamp = now()
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
@ -2699,7 +2702,7 @@ class ITUNES(DriverBase):
|
|||||||
if iswindows and metadata.series:
|
if iswindows and metadata.series:
|
||||||
metadata.tags = None
|
metadata.tags = None
|
||||||
|
|
||||||
set_metadata(zfo, metadata, update_timestamp=True)
|
set_metadata(zfo, metadata, apply_null=True, update_timestamp=True)
|
||||||
|
|
||||||
def _update_device(self, msg='', wait=True):
|
def _update_device(self, msg='', wait=True):
|
||||||
'''
|
'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user