mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR patch adding get_all_user_metadata()
This commit is contained in:
parent
f10c84ffdc
commit
ac1c9d52cb
@ -529,6 +529,14 @@ class OPF(object): # {{{
|
||||
self.find_toc()
|
||||
self.read_user_metadata()
|
||||
|
||||
def get_all_user_metadata(self, make_copy):
|
||||
'''
|
||||
return a dict containing all the custom field metadata associated with
|
||||
the book.
|
||||
'''
|
||||
self.read_user_metadata()
|
||||
return self._user_metadata_
|
||||
|
||||
def read_user_metadata(self):
|
||||
self._user_metadata_ = {}
|
||||
temp = Metadata('x', ['x'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user