dont extract text if extract_text is false
This commit is contained in:
parent
97d4aea892
commit
9f396acd48
1 changed files with 2 additions and 2 deletions
|
@ -206,9 +206,9 @@ def info(pdf):
|
|||
del data[key]
|
||||
if key == 'language':
|
||||
data[key] = get_language(data[key])
|
||||
text = extract_text(pdf)
|
||||
data['textsize'] = len(text)
|
||||
if settings.server['extract_text']:
|
||||
text = extract_text(pdf)
|
||||
data['textsize'] = len(text)
|
||||
if not 'isbn' in data:
|
||||
isbn = extract_isbn(text)
|
||||
if isbn:
|
||||
|
|
Loading…
Reference in a new issue