mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Book polishing: Make updating cover a separate option, so you can now update metadata without updating the ocver.
This commit is contained in:
parent
b76b53bea0
commit
68bbf64452
@ -174,6 +174,7 @@ def gui_polish(data):
|
|||||||
files = data.pop('files')
|
files = data.pop('files')
|
||||||
if not data.pop('metadata'):
|
if not data.pop('metadata'):
|
||||||
data.pop('opf')
|
data.pop('opf')
|
||||||
|
if not data.pop('do_cover'):
|
||||||
data.pop('cover')
|
data.pop('cover')
|
||||||
file_map = {x:x for x in files}
|
file_map = {x:x for x in files}
|
||||||
opts = ALL_OPTS.copy()
|
opts = ALL_OPTS.copy()
|
||||||
|
@ -44,13 +44,18 @@ class Polish(QDialog): # {{{
|
|||||||
_('<h3>Smarten punctuation</h3>%s')%HELP['smarten_punctuation'],
|
_('<h3>Smarten punctuation</h3>%s')%HELP['smarten_punctuation'],
|
||||||
|
|
||||||
'metadata':_('<h3>Updating metadata</h3>'
|
'metadata':_('<h3>Updating metadata</h3>'
|
||||||
'<p>This will update all metadata and covers in the'
|
'<p>This will update all metadata <i>except</i> the cover in the'
|
||||||
' ebook files to match the current metadata in the'
|
' ebook files to match the current metadata in the'
|
||||||
' calibre library.</p><p>If the ebook file does not have'
|
' calibre library.</p>'
|
||||||
' an identifiable cover, a new cover is inserted.</p>'
|
|
||||||
' <p>Note that most ebook'
|
' <p>Note that most ebook'
|
||||||
' formats are not capable of supporting all the'
|
' formats are not capable of supporting all the'
|
||||||
' metadata in calibre.</p>'),
|
' metadata in calibre.</p><p>There is a separate option to'
|
||||||
|
' update the cover.</p>'),
|
||||||
|
'do_cover': _('<p>Update the covers in the ebook files to match the'
|
||||||
|
' current cover in the calibre library.</p>'
|
||||||
|
'<p>If the ebook file does not have'
|
||||||
|
' an identifiable cover, a new cover is inserted.</p>'
|
||||||
|
),
|
||||||
'jacket':_('<h3>Book Jacket</h3>%s')%HELP['jacket'],
|
'jacket':_('<h3>Book Jacket</h3>%s')%HELP['jacket'],
|
||||||
'remove_jacket':_('<h3>Remove Book Jacket</h3>%s')%HELP['remove_jacket'],
|
'remove_jacket':_('<h3>Remove Book Jacket</h3>%s')%HELP['remove_jacket'],
|
||||||
}
|
}
|
||||||
@ -63,11 +68,12 @@ class Polish(QDialog): # {{{
|
|||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
self.all_actions = OrderedDict([
|
self.all_actions = OrderedDict([
|
||||||
('subset', _('Subset all embedded fonts')),
|
('subset', _('&Subset all embedded fonts')),
|
||||||
('smarten_punctuation', _('Smarten punctuation')),
|
('smarten_punctuation', _('Smarten &punctuation')),
|
||||||
('metadata', _('Update metadata in book files')),
|
('metadata', _('Update &metadata in the book files')),
|
||||||
('jacket', _('Add metadata as a "book jacket" page')),
|
('do_cover', _('Update the &cover in the book files')),
|
||||||
('remove_jacket', _('Remove a previously inserted book jacket')),
|
('jacket', _('Add metadata as a "book &jacket" page')),
|
||||||
|
('remove_jacket', _('&Remove a previously inserted book jacket')),
|
||||||
])
|
])
|
||||||
prefs = gprefs.get('polishing_settings', {})
|
prefs = gprefs.get('polishing_settings', {})
|
||||||
for name, text in self.all_actions.iteritems():
|
for name, text in self.all_actions.iteritems():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user