mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 15:56:14 +01:00
When adding books do not add OPF files as a separate format
This commit is contained in:
parent
50486dfd90
commit
275fcd9383
2 changed files with 3 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ class NookOutput(OutputProfile):
|
|||
description = _('This profile is intended for the B&N Nook.')
|
||||
|
||||
# Screen size is a best guess
|
||||
screen_size = (600, 770)
|
||||
screen_size = (600, 730)
|
||||
dpi = 167
|
||||
fbase = 16
|
||||
fsizes = [12, 12, 14, 16, 18, 20, 22, 24]
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ def __init__(self, parent, db, duplicates, db_adder):
|
|||
def run(self):
|
||||
count = 1
|
||||
for mi, cover, formats in self.duplicates:
|
||||
formats = [f for f in formats if not f.lower().endswith('.opf')]
|
||||
id = self.db.create_book_entry(mi, cover=cover,
|
||||
add_duplicates=True)
|
||||
self.db_adder.add_formats(id, formats)
|
||||
|
|
@ -139,6 +140,7 @@ def add(self, id, opf, cover, name):
|
|||
if id is None:
|
||||
self.duplicates.append((mi, cover, formats))
|
||||
else:
|
||||
formats = [f for f in formats if not f.lower().endswith('.opf')]
|
||||
self.add_formats(id, formats)
|
||||
else:
|
||||
self.names.append(name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue