mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7a122f2b6e
commit
1e246c89d3
@ -43,7 +43,7 @@ class OverDrive(Source):
|
|||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
Source.__init__(self, *args, **kwargs)
|
Source.__init__(self, *args, **kwargs)
|
||||||
self.prefs.defaults['ignore_fields'] =['tags', 'pubdate', 'comments', 'identifier:isbn']
|
self.prefs.defaults['ignore_fields'] =['tags', 'pubdate', 'comments']
|
||||||
|
|
||||||
def identify(self, log, result_queue, abort, title=None, authors=None, # {{{
|
def identify(self, log, result_queue, abort, title=None, authors=None, # {{{
|
||||||
identifiers={}, timeout=30):
|
identifiers={}, timeout=30):
|
||||||
|
@ -310,7 +310,8 @@ def proceed(gui, job):
|
|||||||
def merge_result(oldmi, newmi):
|
def merge_result(oldmi, newmi):
|
||||||
dummy = Metadata(_('Unknown'))
|
dummy = Metadata(_('Unknown'))
|
||||||
for f in msprefs['ignore_fields']:
|
for f in msprefs['ignore_fields']:
|
||||||
setattr(newmi, f, getattr(dummy, f))
|
if ':' not in f:
|
||||||
|
setattr(newmi, f, getattr(dummy, f))
|
||||||
fields = set()
|
fields = set()
|
||||||
for plugin in metadata_plugins(['identify']):
|
for plugin in metadata_plugins(['identify']):
|
||||||
fields |= plugin.touched_fields
|
fields |= plugin.touched_fields
|
||||||
|
@ -326,7 +326,8 @@ class MetadataSingleDialogBase(ResizableDialog):
|
|||||||
mi = d.book
|
mi = d.book
|
||||||
dummy = Metadata(_('Unknown'))
|
dummy = Metadata(_('Unknown'))
|
||||||
for f in msprefs['ignore_fields']:
|
for f in msprefs['ignore_fields']:
|
||||||
setattr(mi, f, getattr(dummy, f))
|
if ':' not in f:
|
||||||
|
setattr(mi, f, getattr(dummy, f))
|
||||||
if mi is not None:
|
if mi is not None:
|
||||||
self.update_from_mi(mi)
|
self.update_from_mi(mi)
|
||||||
if d.cover_pixmap is not None:
|
if d.cover_pixmap is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user