diff --git a/couchpotato/core/plugins/movie/static/movie.js b/couchpotato/core/plugins/movie/static/movie.js index f8af5c09..17234b92 100644 --- a/couchpotato/core/plugins/movie/static/movie.js +++ b/couchpotato/core/plugins/movie/static/movie.js @@ -397,10 +397,6 @@ var ReleaseAction = new Class({ quality = Quality.getProfile(release.quality_id) || {}, info = release.info; - try { - var details_url = info.filter(function(item){ return item.identifier == 'detail_url' }).pick().value; - } catch(e){} - if( status.identifier == 'ignored' || status.identifier == 'failed'){ self.last_release = release; } @@ -422,8 +418,8 @@ var ReleaseAction = new Class({ new Element('span.age', {'text': self.get(release, 'age')}), new Element('span.score', {'text': self.get(release, 'score')}), new Element('span.provider', {'text': self.get(release, 'provider')}), - details_url ? new Element('a.info.icon', { - 'href': details_url, + release.info['detail_url'] ? new Element('a.info.icon', { + 'href': release.info['detail_url'], 'target': '_blank' }) : null, new Element('a.download.icon', { diff --git a/couchpotato/core/providers/torrent/kickasstorrents/main.py b/couchpotato/core/providers/torrent/kickasstorrents/main.py index 84a679f2..6c157a6b 100644 --- a/couchpotato/core/providers/torrent/kickasstorrents/main.py +++ b/couchpotato/core/providers/torrent/kickasstorrents/main.py @@ -13,7 +13,7 @@ class KickAssTorrents(TorrentProvider): urls = { 'test': 'http://kat.ph/', - 'detail': 'http://kat.ph/%s-t%s.html', + 'detail': 'http://kat.ph/%s', 'search': 'http://kat.ph/i%s/', } @@ -74,6 +74,7 @@ class KickAssTorrents(TorrentProvider): new['id'] = temp.get('id')[-8:] new['name'] = link.text new['url'] = td.find('a', 'imagnet')['href'] + new['detail_url'] = self.urls['detail'] % link['href'][1:] new['score'] = 20 if td.find('a', 'iverif') else 0 elif column_name is 'size': new['size'] = self.parseSize(td.text)