Private GIT

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

Just use q as name in imdbapi search.

parent 61a3a038
Branches
Tags
No related merge requests found
......@@ -27,8 +27,10 @@ class IMDBAPI(MovieProvider):
name_year = fireEvent('scanner.name_year', q, single = True)
if not q or not name_year or (name_year and not name_year.get('name')):
return []
if not name_year or (name_year and not name_year.get('name')):
name_year = {
'name': q
}
cache_key = 'imdbapi.cache.%s' % q
cached = self.getCache(cache_key, self.urls['search'] % tryUrlencode({'t': name_year.get('name'), 'y': name_year.get('year', '')}), timeout = 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment