diff --git a/couchpotato/core/helpers/variable.py b/couchpotato/core/helpers/variable.py index 8f393d0a..fd1a101d 100644 --- a/couchpotato/core/helpers/variable.py +++ b/couchpotato/core/helpers/variable.py @@ -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()