Skip to content

Commit

Permalink
- fix for #62 contributed by https://github.com/mmolenda
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismattmann committed Aug 15, 2015
1 parent df1411f commit f887f78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tika/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def _parse(jsonOutput):
for n in js:
if n != "X-TIKA:content":
if n in parsed["metadata"]:
if not isinstance(parsed["metadata"][n], list):
parsed["metadata"][n] = [parsed["metadata"][n]]
parsed["metadata"][n].append(js[n])
else:
parsed["metadata"][n] = js[n]
Expand Down

0 comments on commit f887f78

Please sign in to comment.