Correction du bug 1979 : remplacement des url en kickass.to par kat.cr
Signed-off-by: Loic Bontonou <loic.bontonou@gmail.com> Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
parent
c54dbd2ee9
commit
7e146f8a99
1 changed files with 5 additions and 5 deletions
|
|
@ -27,23 +27,23 @@ __all__ = ['KickassBrowser']
|
|||
|
||||
|
||||
class KickassBrowser(Browser):
|
||||
DOMAIN = 'kickass.to'
|
||||
DOMAIN = 'kat.cr'
|
||||
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://kat.cr/usearch/.*field=seeders&sorder=desc': TorrentsPage,
|
||||
'https://kat.cr/.*.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://kat.cr/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://kat.cr/%s.html' % id)
|
||||
except BrowserHTTPNotFound:
|
||||
return
|
||||
if self.is_on_page(TorrentPage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue