Encode before checking imdb content. fix #2186

This commit is contained in:
Ruud
2013-09-17 20:43:41 +02:00
parent 821c26f35b
commit 156da670e8

View File

@@ -1,4 +1,4 @@
from couchpotato.core.helpers.encoding import simplifyString, toSafeString
from couchpotato.core.helpers.encoding import simplifyString, toSafeString, ss
from couchpotato.core.logger import CPLog
import hashlib
import os.path
@@ -125,6 +125,8 @@ def cleanHost(host):
def getImdb(txt, check_inside = True, multiple = False):
txt = ss(txt)
if check_inside and os.path.isfile(txt):
output = open(txt, 'r')
txt = output.read()