kickass: Domain move
http://torrentfreak.com/kickasstorrents-moves-kickass-so-domain-name-141117/
This commit is contained in:
parent
9dac04a69b
commit
cf9ac90386
1 changed files with 5 additions and 5 deletions
|
|
@ -27,23 +27,23 @@ __all__ = ['KickassBrowser']
|
|||
|
||||
|
||||
class KickassBrowser(Browser):
|
||||
DOMAIN = 'kickass.to'
|
||||
DOMAIN = 'kickass.so'
|
||||
PROTOCOL = 'https'
|
||||
ENCODING = 'utf-8'
|
||||
USER_AGENT = Browser.USER_AGENTS['wget']
|
||||
PAGES = {
|
||||
'https://kickass.to/usearch/.*field=seeders&sorder=desc': TorrentsPage,
|
||||
'https://kickass.to/.*.html': TorrentPage,
|
||||
'https://kickass.so/usearch/.*field=seeders&sorder=desc': TorrentsPage,
|
||||
'https://kickass.so/.*.html': TorrentPage,
|
||||
}
|
||||
|
||||
def iter_torrents(self, pattern):
|
||||
self.location('https://kickass.to/usearch/%s/?field=seeders&sorder=desc' % pattern.encode('utf-8'))
|
||||
self.location('https://kickass.so/usearch/%s/?field=seeders&sorder=desc' % pattern.encode('utf-8'))
|
||||
assert self.is_on_page(TorrentsPage)
|
||||
return self.page.iter_torrents()
|
||||
|
||||
def get_torrent(self, id):
|
||||
try:
|
||||
self.location('https://kickass.to/%s.html' % id)
|
||||
self.location('https://kickass.so/%s.html' % id)
|
||||
except BrowserHTTPNotFound:
|
||||
return
|
||||
if self.is_on_page(TorrentPage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue