import text not html

This commit is contained in:
j 2016-01-08 15:52:07 +05:30
commit 84c15c690a
3 changed files with 15 additions and 1 deletions

View file

@ -13,6 +13,8 @@ from . import worldcat
from . import google
from . import duckduckgo
from .utils import decode_html_data
from oml import settings
import logging
@ -95,6 +97,7 @@ def lookup(key, value):
for key in [k['id'] for k in settings.config['itemKeys'] if isinstance(k['type'], list)]:
if key in data and not isinstance(data[key], list):
data[key] = [data[key]]
data = decode_html_data(data)
return data
def isvalid_id(key, value):