Add page nr after
This commit is contained in:
1 parent
61a0bb8ec6
commit
d4de68ef86
1 file changed
+1
-1
@@ -51,6 +51,7 @@ class ThePirateBay(TorrentMagnetProvider):
|
|||||||
while page < total_pages:
|
while page < total_pages:
|
||||||
|
|
||||||
search_url = self.urls['search'] % (self.getDomain(), tryUrlencode('"%s %s"' % (title, movie['library']['year'])), page, self.getCatId(quality['identifier'])[0])
|
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)
|
data = self.getHTMLData(search_url)
|
||||||
|
|
||||||
@@ -64,7 +65,6 @@ class ThePirateBay(TorrentMagnetProvider):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
total_pages = len(soup.find('div', attrs = {'align': 'center'}).find_all('a'))
|
total_pages = len(soup.find('div', attrs = {'align': 'center'}).find_all('a'))
|
||||||
page += 1
|
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user