diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 74905a31..998097d8 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -198,7 +198,7 @@ class Plugin(object): log.error("Something went wrong when finishing the plugin function. Could not find the 'is_running' key") - def getCache(self, cache_key, url = None, *args, **kwargs): + def getCache(self, cache_key, url = None, **kwargs): cache = Env.get('cache').get(cache_key) if cache: if not Env.get('dev'): log.debug('Getting cache %s' % cache_key) @@ -212,7 +212,7 @@ class Plugin(object): cache_timeout = kwargs.get('cache_timeout') del kwargs['cache_timeout'] - data = self.urlopen(url, *args, **kwargs) + data = self.urlopen(url, **kwargs) self.setCache(cache_key, data, timeout = cache_timeout) return data except: diff --git a/couchpotato/core/providers/movie/imdbapi/main.py b/couchpotato/core/providers/movie/imdbapi/main.py index e65048bc..e65a358d 100644 --- a/couchpotato/core/providers/movie/imdbapi/main.py +++ b/couchpotato/core/providers/movie/imdbapi/main.py @@ -31,7 +31,7 @@ class IMDBAPI(MovieProvider): return [] 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', '')}), url_timeout = 3) + cached = self.getCache(cache_key, self.urls['search'] % tryUrlencode({'t': name_year.get('name'), 'y': name_year.get('year', '')}), timeout = 3) if cached: result = self.parseMovie(cached)