handle utf-16 pdf info

This commit is contained in:
j 2014-11-15 00:57:49 +00:00
commit d722ae004b
2 changed files with 8 additions and 2 deletions

View file

@ -42,6 +42,7 @@ def add_file(id, f, prefix, from_=None):
user = state.user()
path = f[len(prefix):]
data = media.metadata(f, from_)
print(path)
file = File.get_or_create(id, data, path)
item = file.item
if 'primaryid' in file.info: