Don't continue with bitsoup if table isn't found. fix #2633
This commit is contained in:
1 parent
4cdf71513f
commit
5e24b11c21
1 file changed
+3
@@ -35,6 +35,9 @@ class Bitsoup(TorrentProvider):
|
||||
|
||||
try:
|
||||
result_table = html.find('table', attrs = {'class': 'koptekst'})
|
||||
if not result_table or 'nothing found!' in data.lower():
|
||||
return
|
||||
|
||||
entries = result_table.find_all('tr')
|
||||
for result in entries[1:]:
|
||||
|
||||
|
||||
Reference in new issue
Block a user