From 3494d071b904460c17f82551c734c45bf3a7232d Mon Sep 17 00:00:00 2001 From: Anthony Snavely Date: Tue, 21 Oct 2014 21:57:43 -0700 Subject: [PATCH 1/2] Fix HD-Torrents Fix HD-Torrents so it works properly. --- sickbeard/providers/hdtorrents.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sickbeard/providers/hdtorrents.py b/sickbeard/providers/hdtorrents.py index e011d010..a372a29e 100644 --- a/sickbeard/providers/hdtorrents.py +++ b/sickbeard/providers/hdtorrents.py @@ -199,7 +199,7 @@ class HDTorrentsProvider(generic.TorrentProvider): continue # Remove HDTorrents NEW list - split_data = data.partition('\n\n\n\n') + split_data = data.partition('\n\n\n\n') data = split_data[2] try: @@ -207,6 +207,10 @@ class HDTorrentsProvider(generic.TorrentProvider): #Get first entry in table entries = html.find_all('td', attrs={'align': 'center'}) + if html.find(text='No torrents here...'): + logger.log(u"No results found for: " + search_string + " (" + searchURL + ")", logger.DEBUG) + continue + if not entries: logger.log(u"The Data returned from " + self.name + " do not contains any torrent", logger.DEBUG) From 3ffb561282f6478f9321aa0e127dc207297dd826 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 22 Oct 2014 14:42:03 +0800 Subject: [PATCH 2/2] Update changelog --- CHANGES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index bce6c96d..3399157e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +### 0.2.1 (2014-10-22 06:41:00 UTC) + +[full changelog](https://github.com/SickragePVR/SickRage/compare/release_0.2.0...release_0.2.1) + +* Fix HDtorrents provider screen scraping + ### 0.2.0 (2014-10-21 12:36:50 UTC) [full changelog](https://github.com/SickragePVR/SickRage/compare/release_0.1.0...release_0.2.0)