From 5e24b11c2124a9f9677b61d70e25a698758b784e Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 6 Jan 2014 22:36:51 +0100 Subject: [PATCH] Don't continue with bitsoup if table isn't found. fix #2633 --- couchpotato/core/providers/torrent/bitsoup/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/providers/torrent/bitsoup/main.py b/couchpotato/core/providers/torrent/bitsoup/main.py index 539ba43d..22487007 100644 --- a/couchpotato/core/providers/torrent/bitsoup/main.py +++ b/couchpotato/core/providers/torrent/bitsoup/main.py @@ -35,6 +35,9 @@ class Bitsoup(TorrentProvider): try: result_table = html.find('table', attrs = {'class': 'koptekst'}) + if not result_table or 'nothing found!' in data.lower(): + return + entries = result_table.find_all('tr') for result in entries[1:]: