Browse Source

Use default timeout for CP calls

pull/1316/head
Ruud 12 years ago
parent
commit
b93488f025
  1. 4
      couchpotato/core/providers/movie/couchpotatoapi/main.py

4
couchpotato/core/providers/movie/couchpotatoapi/main.py

@ -33,7 +33,7 @@ class CouchPotatoApi(MovieProvider):
def search(self, q, limit = 12):
cache_key = 'cpapi.cache.%s' % q
cached = self.getCache(cache_key, self.urls['search'] % tryUrlencode(q), timeout = 3, headers = self.getRequestHeaders())
cached = self.getCache(cache_key, self.urls['search'] % tryUrlencode(q), headers = self.getRequestHeaders())
if cached:
try:
@ -50,7 +50,7 @@ class CouchPotatoApi(MovieProvider):
return
cache_key = 'cpapi.cache.info.%s' % identifier
cached = self.getCache(cache_key, self.urls['info'] % identifier, timeout = 3, headers = self.getRequestHeaders())
cached = self.getCache(cache_key, self.urls['info'] % identifier, headers = self.getRequestHeaders())
if cached:
try:

Loading…
Cancel
Save