mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-30 17:49:27 +01:00
Piratebay getting stuck if no results found
This commit is contained in:
@@ -1102,9 +1102,11 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False):
|
||||
|
||||
soup = BeautifulSoup(data)
|
||||
table = soup.find('table')
|
||||
rows = table.findAll('tr')
|
||||
rows = None
|
||||
if table:
|
||||
rows = table.findAll('tr')
|
||||
|
||||
if len(rows) == '1':
|
||||
if not rows or len(rows) == '1':
|
||||
logger.info(u"No results found from %s for %s" % (provider, term))
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user