Encode before checking imdb content. fix #2186
This commit is contained in:
@@ -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
|
from couchpotato.core.logger import CPLog
|
||||||
import hashlib
|
import hashlib
|
||||||
import os.path
|
import os.path
|
||||||
@@ -125,6 +125,8 @@ def cleanHost(host):
|
|||||||
|
|
||||||
def getImdb(txt, check_inside = True, multiple = False):
|
def getImdb(txt, check_inside = True, multiple = False):
|
||||||
|
|
||||||
|
txt = ss(txt)
|
||||||
|
|
||||||
if check_inside and os.path.isfile(txt):
|
if check_inside and os.path.isfile(txt):
|
||||||
output = open(txt, 'r')
|
output = open(txt, 'r')
|
||||||
txt = output.read()
|
txt = output.read()
|
||||||
|
|||||||
Reference in New Issue
Block a user