From 30f5a664872afee4e0669a3d0a2712cce8904da7 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 11 Jul 2013 15:24:20 +0200 Subject: [PATCH] AwesomeHD: Log wrong passkey. fix #1912 --- couchpotato/core/providers/torrent/awesomehd/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/couchpotato/core/providers/torrent/awesomehd/main.py b/couchpotato/core/providers/torrent/awesomehd/main.py index fed1251..79482f2 100644 --- a/couchpotato/core/providers/torrent/awesomehd/main.py +++ b/couchpotato/core/providers/torrent/awesomehd/main.py @@ -25,6 +25,11 @@ class AwesomeHD(TorrentProvider): if data: try: soup = BeautifulSoup(data) + + if soup.find('error'): + log.error(soup.find('error').get_text()) + return + authkey = soup.find('authkey').get_text() entries = soup.find_all('torrent')