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
+2 -2
View File
@@ -565,7 +565,7 @@ class Scanner(Plugin):
if not imdb_id:
try:
for nf in files['nfo']:
imdb_id = getImdb(nf)
imdb_id = getImdb(nf, check_inside = True)
if imdb_id:
log.debug('Found movie via nfo file: %s', nf)
nfo_file = nf
@@ -578,7 +578,7 @@ class Scanner(Plugin):
try:
for filetype in files:
for filetype_file in files[filetype]:
imdb_id = getImdb(filetype_file, check_inside = False)
imdb_id = getImdb(filetype_file)
if imdb_id:
log.debug('Found movie via imdb in filename: %s', nfo_file)
break