diff --git a/oml/media/__init__.py b/oml/media/__init__.py index cd363f6..e7fa764 100644 --- a/oml/media/__init__.py +++ b/oml/media/__init__.py @@ -15,6 +15,8 @@ from . import epub from . import txt from . import opf +from meta.utils import decode_html_data + def get_id(f=None, data=None): if data: return base64.b32encode(hashlib.sha1(data).digest()).decode() @@ -83,5 +85,6 @@ def metadata(f, from_=None): data['title'] = data['title'][:-len(postfix)] if not data['title'].strip(): del data['title'] + data = decode_html_data(data) return data