Simplify string before checking on imdb

This commit is contained in:
Ruud
2013-09-20 18:08:27 +02:00
parent 9e0805ec89
commit 69a9fa1193
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -123,9 +123,12 @@ def cleanHost(host):
return host
def getImdb(txt, check_inside = True, multiple = False):
def getImdb(txt, check_inside = False, multiple = False):
txt = ss(txt)
if not check_inside:
txt = simplifyString(txt)
else:
txt = ss(txt)
if check_inside and os.path.isfile(txt):
output = open(txt, 'r')