swordfish6975
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
couchpotato/core/media/_base/providers/torrent/iptorrents.py
|
@ -50,7 +50,7 @@ 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) |
|
|
|
|
|
|
|
@ -62,8 +62,8 @@ class Base(TorrentProvider): |
|
|
final_page_link = next_link.previous_sibling.previous_sibling |
|
|
final_page_link = next_link.previous_sibling.previous_sibling |
|
|
pages = int(final_page_link.string) |
|
|
pages = int(final_page_link.string) |
|
|
|
|
|
|
|
|
result_table = html.find('table', attrs={'id': 'torrents','class' : 't1'}) |
|
|
result_table = html.find('table', attrs={'id': 'torrents'}) |
|
|
|
|
|
log.debug('result_table: %s', result_table) |
|
|
if not result_table or 'nothing found!' in data.lower(): |
|
|
if not result_table or 'nothing found!' in data.lower(): |
|
|
return |
|
|
return |
|
|
|
|
|
|
|
|