Browse Source

Update iptorrents.py

pull/7292/head
swordfish6975 6 years ago
committed by GitHub
parent
commit
b713b7c067
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

@ -50,10 +50,10 @@ class Base(TorrentProvider):
current_page = 1 current_page = 1
while current_page <= pages and not self.shuttingDown(): while current_page <= pages and not self.shuttingDown():
data = self.getHTMLData(base_url % (freeleech, current_page), headers = self.getRequestHeaders()) data = self.getHTMLData(base_url % (freeleech, current_page), headers = self.getRequestHeaders())
log.Debug('data: %s', data)
if data: if data:
html = BeautifulSoup(data) html = BeautifulSoup(data)
try: try:
page_nav = html.find('span', attrs = {'class': 'page_nav'}) page_nav = html.find('span', attrs = {'class': 'page_nav'})
if page_nav: if page_nav:

Loading…
Cancel
Save