Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
RuudBurger committed Feb 18, 2015
2 parents a9e62c4 + 7db8b23 commit 55288ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions couchpotato/core/helpers/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ def toUnicode(original, *args):
try:
detected = detect(original)
try:
return original.decode(detected.get('encoding'))
if detected.get('confidence') > 0.8:
return original.decode(detected.get('encoding'))
except:
return ek(original, *args)
pass

return ek(original, *args)
except:
raise
except:
Expand Down

0 comments on commit 55288ad

Please sign in to comment.