mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a get method to FieldMetadata
This commit is contained in:
parent
a5da02be3b
commit
a83b7e89a0
@ -135,6 +135,8 @@ class FieldMetadata(dict, DictMixin):
|
|||||||
self._tb_cats[k] = v
|
self._tb_cats[k] = v
|
||||||
self.custom_field_prefix = '#'
|
self.custom_field_prefix = '#'
|
||||||
|
|
||||||
|
self.get = self._tb_cats.get
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
return self._tb_cats[key]
|
return self._tb_cats[key]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user