Browse Source

Add page nr after

pull/1316/head
Ruud 12 years ago
parent
commit
d4de68ef86
  1. 2
      couchpotato/core/providers/torrent/thepiratebay/main.py

2
couchpotato/core/providers/torrent/thepiratebay/main.py

@ -51,6 +51,7 @@ class ThePirateBay(TorrentMagnetProvider):
while page < total_pages:
search_url = self.urls['search'] % (self.getDomain(), tryUrlencode('"%s %s"' % (title, movie['library']['year'])), page, self.getCatId(quality['identifier'])[0])
page += 1
data = self.getHTMLData(search_url)
@ -64,7 +65,6 @@ class ThePirateBay(TorrentMagnetProvider):
try:
total_pages = len(soup.find('div', attrs = {'align': 'center'}).find_all('a'))
page += 1
except:
pass

Loading…
Cancel
Save