home method is useless on torrent backends

This commit is contained in:
Julien Veyssier 2013-04-10 16:07:31 +02:00
commit 8e09865ae0
2 changed files with 0 additions and 6 deletions

View file

@ -36,9 +36,6 @@ class IsohuntBrowser(BaseBrowser):
'https://isohunt.com/torrent_details.*tab=summary': TorrentPage,
}
def home(self):
return self.location('https://isohunt.com')
def iter_torrents(self, pattern):
self.location('https://isohunt.com/torrents/%s?iht=-1&ihp=1&ihs1=1&iho1=d' % pattern.encode('utf-8'))
assert self.is_on_page(TorrentsPage)

View file

@ -39,9 +39,6 @@ class PiratebayBrowser(BaseBrowser):
'https://thepiratebay.gl/torrent/.*': TorrentPage
}
def home(self):
return self.location('https://thepiratebay.gl/')
def iter_torrents(self, pattern):
self.location('https://thepiratebay.gl/search/%s/0/7/0' % urllib.quote_plus(pattern.encode('utf-8')))