diff --git a/CHANGES.md b/CHANGES.md index 7c926ebd..5dcfe44e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,16 @@ ### 0.x.x (2014-10-22 xx:xx:xx UTC) + * Added date formats for dd/mm/yy & day, dd/mm/yy * Added date formats for dd/mm/yyyy & day, dd/mm/yyyy + +### 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) 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)