mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:53:09 +02:00
made extra metadata downloading optional
This commit is contained in:
parent
bc12990553
commit
c50251a3f6
1 changed files with 3 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
print_function)
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
||||
__copyright__ = '2011, Kovid Goyal kovid@kovidgoyal.net'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
'''
|
||||
|
|
@ -44,7 +44,7 @@ def __init__(self, *args, **kwargs):
|
|||
Source.__init__(self, *args, **kwargs)
|
||||
|
||||
options = (
|
||||
Option('get_full_metadata', 'bool', False, _('Gather all Metadata:'),
|
||||
Option('get_full_metadata', 'bool', None, _('Gather all Metadata:'),
|
||||
_('Enable this option to gather all metadata available from Overdrive.')),
|
||||
)
|
||||
|
||||
|
|
@ -59,10 +59,6 @@ def __init__(self, *args, **kwargs):
|
|||
prefs = self.prefs
|
||||
prefs.defaults['get_full_metadata'] = False
|
||||
|
||||
@property
|
||||
def get_full_metadata(self):
|
||||
return self.prefs['get_full_metadata']
|
||||
|
||||
def identify(self, log, result_queue, abort, title=None, authors=None, # {{{
|
||||
identifiers={}, timeout=30):
|
||||
ovrdrv_id = identifiers.get('overdrive', None)
|
||||
|
|
@ -78,7 +74,7 @@ def identify(self, log, result_queue, abort, title=None, authors=None, # {{{
|
|||
if ovrdrv_id is None:
|
||||
ovrdrv_id = ovrdrv_data[7]
|
||||
|
||||
if get_full_metadata():
|
||||
if self.prefs['get_full_metadata']:
|
||||
self.get_book_detail(br, ovrdrv_data[1], mi, ovrdrv_id, log)
|
||||
|
||||
if isbn is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue