1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Merge branch 'hotfix/0.2.1'

This commit is contained in:
adam 2014-10-22 14:42:34 +08:00
commit 0a362e81dd
2 changed files with 11 additions and 1 deletions

View File

@ -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) ### 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) [full changelog](https://github.com/SickragePVR/SickRage/compare/release_0.1.0...release_0.2.0)

View File

@ -199,7 +199,7 @@ class HDTorrentsProvider(generic.TorrentProvider):
continue continue
# Remove HDTorrents NEW list # Remove HDTorrents NEW list
split_data = data.partition('<!-- show New Torrents After Last Visit -->\n\n\n\n') split_data = data.partition('<!-- Show New Torrents After Last Visit -->\n\n\n\n')
data = split_data[2] data = split_data[2]
try: try:
@ -207,6 +207,10 @@ class HDTorrentsProvider(generic.TorrentProvider):
#Get first entry in table #Get first entry in table
entries = html.find_all('td', attrs={'align': 'center'}) 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: if not entries:
logger.log(u"The Data returned from " + self.name + " do not contains any torrent", logger.log(u"The Data returned from " + self.name + " do not contains any torrent",
logger.DEBUG) logger.DEBUG)