1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-16 22:35:03 -05:00

Fix HD-Torrents

Fix HD-Torrents so it works properly.
This commit is contained in:
Anthony Snavely 2014-10-21 21:57:43 -07:00 committed by adam
parent 262c2e8e8c
commit 3494d071b9

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)