mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Change IPTorrents.
This commit is contained in:
parent
900e8d5874
commit
117dc8b400
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ class IPTorrentsProvider(generic.TorrentProvider):
|
|||
raise generic.HaltParseException
|
||||
|
||||
with BS4Parser(html, features=['html5lib', 'permissive']) as soup:
|
||||
torrent_table = soup.find('table', attrs={'class': 'torrents'})
|
||||
torrent_table = soup.find('table', attrs={'id': 'torrents'}) or \
|
||||
soup.find('table', attrs={'class': 'torrents'})
|
||||
torrent_rows = [] if not torrent_table else torrent_table.find_all('tr')
|
||||
|
||||
if 2 > len(torrent_rows):
|
||||
|
|
Loading…
Reference in a new issue