mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
dd156c7568
@ -1566,10 +1566,15 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
def set_library_info(self, library_name, library_uuid, field_metadata):
|
def set_library_info(self, library_name, library_uuid, field_metadata):
|
||||||
self._debug(library_name, library_uuid)
|
self._debug(library_name, library_uuid)
|
||||||
if self.can_accept_library_info:
|
if self.can_accept_library_info:
|
||||||
|
other_info = {}
|
||||||
|
from calibre.ebooks.metadata.sources.prefs import msprefs
|
||||||
|
other_info['id_link_rules'] = msprefs.get('id_link_rules', {})
|
||||||
|
|
||||||
self._call_client('SET_LIBRARY_INFO',
|
self._call_client('SET_LIBRARY_INFO',
|
||||||
{'libraryName' : library_name,
|
{'libraryName' : library_name,
|
||||||
'libraryUuid': library_uuid,
|
'libraryUuid': library_uuid,
|
||||||
'fieldMetadata': field_metadata.all_metadata()},
|
'fieldMetadata': field_metadata.all_metadata(),
|
||||||
|
'otherInfo': other_info},
|
||||||
print_debug_info=True)
|
print_debug_info=True)
|
||||||
|
|
||||||
@synchronous('sync_lock')
|
@synchronous('sync_lock')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user