Undefined variable fix
This commit is contained in:
1 parent
7704ff8e75
commit
2beba28e5f
1 file changed
+2
@@ -72,6 +72,8 @@ class TheMovieDb(MovieProvider):
|
|||||||
# Sort on returned score first when year is in q
|
# Sort on returned score first when year is in q
|
||||||
if re.search('\s\d{4}', q):
|
if re.search('\s\d{4}', q):
|
||||||
movies = sorted(raw, key = lambda k: k['score'], reverse = True)
|
movies = sorted(raw, key = lambda k: k['score'], reverse = True)
|
||||||
|
else:
|
||||||
|
movies = raw
|
||||||
|
|
||||||
for movie in movies:
|
for movie in movies:
|
||||||
results.append(self.parseMovie(movie))
|
results.append(self.parseMovie(movie))
|
||||||
|
|||||||
Reference in new issue
Block a user