From c214458770c4a3de079155ae609c8dad2050189a Mon Sep 17 00:00:00 2001 From: Ruud <ruud@crashdummy.nl> Date: Sat, 23 Feb 2013 16:09:53 +0100 Subject: [PATCH] IPTorrents, don't continue if nothing found. fixes #1423 --- couchpotato/core/providers/torrent/iptorrents/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/providers/torrent/iptorrents/main.py b/couchpotato/core/providers/torrent/iptorrents/main.py index c5783b9c..f71639e8 100644 --- a/couchpotato/core/providers/torrent/iptorrents/main.py +++ b/couchpotato/core/providers/torrent/iptorrents/main.py @@ -42,7 +42,7 @@ class IPTorrents(TorrentProvider): try: result_table = html.find('table', attrs = {'class' : 'torrents'}) - if not result_table: + if not result_table or 'nothing found!' in data.lower(): return entries = result_table.find_all('tr') -- GitLab