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