Private GIT

Skip to content
Snippets Groups Projects
Commit 30879444 authored by Ruud's avatar Ruud
Browse files

Don't search imdb when no name is found

parent 440bcfb7
Branches
Tags
No related merge requests found
...@@ -27,7 +27,7 @@ class IMDBAPI(MovieProvider): ...@@ -27,7 +27,7 @@ class IMDBAPI(MovieProvider):
name_year = fireEvent('scanner.name_year', q, single = True) name_year = fireEvent('scanner.name_year', q, single = True)
if not q or not name_year.get('name'): if not q or not name_year or (name_year and not name_year.get('name')):
return [] return []
cache_key = 'imdbapi.cache.%s' % q cache_key = 'imdbapi.cache.%s' % q
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment