From 156da670e871be7c79a99c8d28561e6a51239a1e Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 17 Sep 2013 20:43:41 +0200 Subject: [PATCH] Encode before checking imdb content. fix #2186 --- couchpotato/core/helpers/variable.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()