Browse Source

improve resilience to retrieve description in get_more_info

pull/2311/head
salfab 12 years ago
committed by Ruud
parent
commit
c37bf12c8a
  1. 2
      couchpotato/core/providers/torrent/ilovetorrents/main.py

2
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'])

Loading…
Cancel
Save