[weboob] [PATCH 1/1] Correction du bug 1979 : remplacement des url en kickass.to par kat.cr

Loic Bontonou lobotomi51 at gmail.com
Sat Jun 13 15:09:39 CEST 2015


Signed-off-by: Loic Bontonou <loic.bontonou at gmail.com>
---
 modules/kickass/browser.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/kickass/browser.py b/modules/kickass/browser.py
index c701983..4cea7ba 100644
--- a/modules/kickass/browser.py
+++ b/modules/kickass/browser.py
@@ -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):
-- 
1.9.1




More information about the weboob mailing list