From 1dda7edf1cda966a8cfc98ce8145586402ec1215 Mon Sep 17 00:00:00 2001 From: Dean Gardiner Date: Sun, 19 Jan 2014 22:45:37 +1300 Subject: [PATCH] Fixed bug when parsing torrents page in IPT provider --- couchpotato/core/providers/torrent/iptorrents/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/providers/torrent/iptorrents/main.py b/couchpotato/core/providers/torrent/iptorrents/main.py index a02b97f2..6d41c090 100644 --- a/couchpotato/core/providers/torrent/iptorrents/main.py +++ b/couchpotato/core/providers/torrent/iptorrents/main.py @@ -99,7 +99,8 @@ class IPTorrents(TorrentProvider): result = {} for x, col in enumerate(entries[0].find_all('th')): - key = toSafeString(col.text).strip().lower() + name = col.text or col.find('img')['title'] + key = toSafeString(name).strip().lower() if not key: continue