switch to local lookup
This commit is contained in:
parent
f2ad94453d
commit
26ab9a2f39
1 changed files with 2 additions and 0 deletions
|
@ -53,9 +53,11 @@ def lookup_provider(arg):
|
||||||
def lookup(key, value):
|
def lookup(key, value):
|
||||||
if not isvalid_id(key, value):
|
if not isvalid_id(key, value):
|
||||||
return {}
|
return {}
|
||||||
|
'''
|
||||||
if not settings.server.get('local_lookup'):
|
if not settings.server.get('local_lookup'):
|
||||||
import oml.metaremote
|
import oml.metaremote
|
||||||
return oml.metaremote.lookup(key, value)
|
return oml.metaremote.lookup(key, value)
|
||||||
|
'''
|
||||||
if key == 'isbn':
|
if key == 'isbn':
|
||||||
data = google.info(key, value)
|
data = google.info(key, value)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue