mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
Use 'device_db' for device database updates. Change the sony driver as appropriate. Remove the tweak.
This commit is contained in:
parent
6f45344847
commit
0d163a2a7d
@ -180,13 +180,3 @@ content_server_wont_display = ['']
|
|||||||
# level sorts, and if you are seeing a slowdown, reduce the value of this tweak.
|
# level sorts, and if you are seeing a slowdown, reduce the value of this tweak.
|
||||||
maximum_resort_levels = 5
|
maximum_resort_levels = 5
|
||||||
|
|
||||||
|
|
||||||
# Tell the Sony driver to apply the plugboard specified by the given format
|
|
||||||
# before writing to its database. This can be used to change the title, etc,
|
|
||||||
# in the DB, and therefore what the Sony displays.
|
|
||||||
# Example:
|
|
||||||
# sony_db_use_plugboard_format='epub'
|
|
||||||
# Apply the epub plugboard before writing to the Sony DB.
|
|
||||||
# Default: ''
|
|
||||||
sony_db_use_plugboard_format=''
|
|
||||||
|
|
||||||
|
@ -167,10 +167,8 @@ class PRS505(USBMS):
|
|||||||
debug_print('PRS505: finished rebuild_collections')
|
debug_print('PRS505: finished rebuild_collections')
|
||||||
|
|
||||||
def use_plugboard_ext(self):
|
def use_plugboard_ext(self):
|
||||||
ext = tweaks.get('sony_db_use_plugboard_format', None)
|
return 'device_db'
|
||||||
return ext
|
|
||||||
|
|
||||||
def set_plugboard(self, pb):
|
def set_plugboard(self, pb):
|
||||||
if tweaks.get('sony_db_use_plugboard_format', None):
|
|
||||||
debug_print('PRS505: use plugboard', pb)
|
debug_print('PRS505: use plugboard', pb)
|
||||||
self.plugboard = pb
|
self.plugboard = pb
|
@ -60,6 +60,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
for w in metadata_writers():
|
for w in metadata_writers():
|
||||||
for f in w.file_types:
|
for f in w.file_types:
|
||||||
self.formats.append(f)
|
self.formats.append(f)
|
||||||
|
self.formats.append('device_db')
|
||||||
self.formats.sort()
|
self.formats.sort()
|
||||||
self.formats.insert(1, plugboard_any_format_value)
|
self.formats.insert(1, plugboard_any_format_value)
|
||||||
self.new_format.addItems(self.formats)
|
self.new_format.addItems(self.formats)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user