Browse Source

Update iptorrents.py

website UI update - table doesn't have have t_seeders & t_leechers classes anymore. Just need to get using td number
pull/7326/head
jcak 4 years ago
committed by GitHub
parent
commit
c6ea56d56c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      couchpotato/core/media/_base/providers/torrent/iptorrents.py

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

@ -82,8 +82,8 @@ class Base(TorrentProvider):
torrent_download_url = self.urls['base_url'] + (result.find_all('td')[3].find('a'))['href'].replace(' ', '.')
torrent_details_url = self.urls['base_url'] + torrent['href']
torrent_size = self.parseSize(result.find_all('td')[5].string)
torrent_seeders = tryInt(result.find('td', attrs = {'class': 'ac t_seeders'}).string)
torrent_leechers = tryInt(result.find('td', attrs = {'class': 'ac t_leechers'}).string)
torrent_seeders = tryInt(result.find_all('td')[7].string)
torrent_leechers = tryInt(result.find_all('td')[8].string)
results.append({
'id': torrent_id,

Loading…
Cancel
Save