From c37bf12c8a5eaa5a98ba45c179e1dbb64c02c6cd Mon Sep 17 00:00:00 2001 From: salfab Date: Sun, 29 Sep 2013 17:25:30 +0200 Subject: [PATCH] improve resilience to retrieve description in get_more_info --- couchpotato/core/providers/torrent/ilovetorrents/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/providers/torrent/ilovetorrents/main.py b/couchpotato/core/providers/torrent/ilovetorrents/main.py index 5f011e1..7ddce50 100644 --- a/couchpotato/core/providers/torrent/ilovetorrents/main.py +++ b/couchpotato/core/providers/torrent/ilovetorrents/main.py @@ -133,7 +133,7 @@ class ILoveTorrents(TorrentMagnetProvider): try: full_description = self.getHTMLData(item['detail_url'], opener = self.login_opener) html = BeautifulSoup(full_description, "html5lib") - nfo_pre = html.find('td', attrs = {'class':'main'}).findAll('table')[1].findAll('td')[5] + nfo_pre = html.find('td', attrs = {'class':'main'}).findAll('table')[1] description = toUnicode(nfo_pre.text) if nfo_pre else '' except: log.error('Failed getting more info for %s', item['name'])