mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 19:03:49 +02: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
3 changed files with 4 additions and 15 deletions
|
|
@ -180,13 +180,3 @@
|
|||
# level sorts, and if you are seeing a slowdown, reduce the value of this tweak.
|
||||
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 @@ def rebuild_collections(self, booklist, oncard):
|
|||
debug_print('PRS505: finished rebuild_collections')
|
||||
|
||||
def use_plugboard_ext(self):
|
||||
ext = tweaks.get('sony_db_use_plugboard_format', None)
|
||||
return ext
|
||||
return 'device_db'
|
||||
|
||||
def set_plugboard(self, pb):
|
||||
if tweaks.get('sony_db_use_plugboard_format', None):
|
||||
debug_print('PRS505: use plugboard', pb)
|
||||
self.plugboard = pb
|
||||
debug_print('PRS505: use plugboard', pb)
|
||||
self.plugboard = pb
|
||||
|
|
@ -60,6 +60,7 @@ def field_cmp(x, y):
|
|||
for w in metadata_writers():
|
||||
for f in w.file_types:
|
||||
self.formats.append(f)
|
||||
self.formats.append('device_db')
|
||||
self.formats.sort()
|
||||
self.formats.insert(1, plugboard_any_format_value)
|
||||
self.new_format.addItems(self.formats)
|
||||
|
|
|
|||
Loading…
Reference in a new issue