Extra check for imdb file. close #273
This commit is contained in:
1 parent
b59861c22a
commit
63f46fae75
2 files changed
+13
-3
No files matched your search
@@ -77,9 +77,9 @@ def cleanHost(host):
|
||||
|
||||
return host
|
||||
|
||||
def getImdb(txt):
|
||||
def getImdb(txt, check_inside = True):
|
||||
|
||||
if os.path.isfile(txt):
|
||||
if check_inside and os.path.isfile(txt):
|
||||
output = open(txt, 'r')
|
||||
txt = output.read()
|
||||
output.close()
|
||||
|
||||
Reference in new issue
Block a user