Browse Source

Update iptorrents.py

pull/7292/head
swordfish6975 6 years ago
committed by GitHub
parent
commit
62e8c91e4a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      couchpotato/core/media/_base/providers/torrent/iptorrents.py

5
couchpotato/core/media/_base/providers/torrent/iptorrents.py

@ -62,9 +62,10 @@ class Base(TorrentProvider):
final_page_link = next_link.previous_sibling.previous_sibling
pages = int(final_page_link.string)
result_table = html.find(id="torrents")
result_table = html.select('table#torrents')
log.debug('result_table: %s', result_table)
if not result_table or 'nothing found!' in data.lower():
result_table = result_table[0]
if not result_table or 'nothing found!' in data.lower():
return
entries = result_table.find_all('tr')

Loading…
Cancel
Save