|
@ -45,7 +45,8 @@ class Automation(AutomationBase): |
|
|
|
|
|
|
|
|
def search(self, name, year = None, imdb_only = False): |
|
|
def search(self, name, year = None, imdb_only = False): |
|
|
|
|
|
|
|
|
prop_name = 'automation.cached.%s.%s' % (name, year) |
|
|
cache_name = name.decode('utf-8').encode('ascii', 'ignore') |
|
|
|
|
|
prop_name = 'automation.cached.%s.%s' % (cache_name, year) |
|
|
cached_imdb = Env.prop(prop_name, default = False) |
|
|
cached_imdb = Env.prop(prop_name, default = False) |
|
|
if cached_imdb and imdb_only: |
|
|
if cached_imdb and imdb_only: |
|
|
return cached_imdb |
|
|
return cached_imdb |
|
|