IPTorrents ignore empty results
This commit is contained in:
1 parent
9d495a10ec
commit
dac36d7f55
1 file changed
+5
-1
@@ -59,7 +59,11 @@ class IPTorrents(TorrentProvider):
|
|||||||
|
|
||||||
for result in entries[1:]:
|
for result in entries[1:]:
|
||||||
|
|
||||||
torrent = result.find_all('td')[1].find('a')
|
torrent = result.find_all('td')
|
||||||
|
if len(torrent) <= 1:
|
||||||
|
break
|
||||||
|
|
||||||
|
torrent = torrent[1].find('a')
|
||||||
|
|
||||||
torrent_id = torrent['href'].replace('/details.php?id=', '')
|
torrent_id = torrent['href'].replace('/details.php?id=', '')
|
||||||
torrent_name = torrent.string
|
torrent_name = torrent.string
|
||||||
|
|||||||
Reference in new issue
Block a user