mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
04ccd041e9
commit
37eadd1c10
@ -568,7 +568,12 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
|
|
||||||
def dump_metadata(self, book_ids=None, remove_from_dirtied=True,
|
def dump_metadata(self, book_ids=None, remove_from_dirtied=True,
|
||||||
commit=True, dump_to=None):
|
commit=True, dump_to=None):
|
||||||
'Write metadata for each record to an individual OPF file'
|
'''
|
||||||
|
Write metadata for each record to an individual OPF file
|
||||||
|
|
||||||
|
:param dump_to: None or list. If list then instead of writing to file,
|
||||||
|
data is append to list
|
||||||
|
'''
|
||||||
if book_ids is None:
|
if book_ids is None:
|
||||||
book_ids = [x[0] for x in self.conn.get(
|
book_ids = [x[0] for x in self.conn.get(
|
||||||
'SELECT book FROM metadata_dirtied', all=True)]
|
'SELECT book FROM metadata_dirtied', all=True)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user