From 44096f7ca0f296aad801dd612d875f988cae8861 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 14 Jul 2012 00:16:02 +0200 Subject: [PATCH] Simplify KickAssTorrent search. fix #472 --- couchpotato/core/providers/torrent/kickasstorrents/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/providers/torrent/kickasstorrents/main.py b/couchpotato/core/providers/torrent/kickasstorrents/main.py index 2c9b8939..ad3448d5 100644 --- a/couchpotato/core/providers/torrent/kickasstorrents/main.py +++ b/couchpotato/core/providers/torrent/kickasstorrents/main.py @@ -1,6 +1,6 @@ from bs4 import BeautifulSoup from couchpotato.core.event import fireEvent -from couchpotato.core.helpers.variable import tryInt, getTitle +from couchpotato.core.helpers.variable import tryInt from couchpotato.core.logger import CPLog from couchpotato.core.providers.torrent.base import TorrentProvider import StringIO @@ -16,7 +16,7 @@ class KickAssTorrents(TorrentProvider): urls = { 'test': 'http://www.kat.ph/', 'detail': 'http://www.kat.ph/%s-t%s.html', - 'search': 'http://www.kat.ph/%s-i%s/', + 'search': 'http://www.kat.ph/i%s/', 'download': 'http://torcache.net/', } @@ -38,7 +38,7 @@ class KickAssTorrents(TorrentProvider): return results cache_key = 'kickasstorrents.%s.%s' % (movie['library']['identifier'], quality.get('identifier')) - data = self.getCache(cache_key, self.urls['search'] % (getTitle(movie['library']), movie['library']['identifier'].replace('tt', ''))) + data = self.getCache(cache_key, self.urls['search'] % (movie['library']['identifier'].replace('tt', ''))) if data: cat_ids = self.getCatId(quality['identifier'])