From cd8d2d4808ee9c5b68c046996629d9d560375034 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 3 Sep 2013 20:23:40 +0200 Subject: [PATCH] PublicHD description cache timeout --- couchpotato/core/providers/torrent/publichd/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/providers/torrent/publichd/main.py b/couchpotato/core/providers/torrent/publichd/main.py index 7799b4f8..7b497fd9 100644 --- a/couchpotato/core/providers/torrent/publichd/main.py +++ b/couchpotato/core/providers/torrent/publichd/main.py @@ -74,7 +74,7 @@ class PublicHD(TorrentMagnetProvider): if not description: try: - full_description = self.urlopen(item['detail_url'], cache_timeout = 25920000) + full_description = self.urlopen(item['detail_url']) html = BeautifulSoup(full_description) nfo_pre = html.find('div', attrs = {'id':'torrmain'}) description = toUnicode(nfo_pre.text) if nfo_pre else '' @@ -82,7 +82,7 @@ class PublicHD(TorrentMagnetProvider): log.error('Failed getting more info for %s', item['name']) description = '' - self.setCache(cache_key, description) + self.setCache(cache_key, description, timeout = 25920000) item['description'] = description return item