From e76eb2e775937956010cabfc87fff91f3245a2db Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 26 Aug 2015 06:20:37 +0200 Subject: [PATCH] Use new hostname for KickAssTorrents --- .../pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java | 2 +- .../net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java | 2 +- .../rhynodge/filters/torrents/KickAssTorrentsFilterTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java b/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java index 7c4d933..e086e75 100644 --- a/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java +++ b/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java @@ -66,7 +66,7 @@ public class KickAssTorrentsEpisodeWatcher extends DefaultWatcher { */ private static Query createHttpQuery(String searchTerms) { try { - return new HttpQuery("https://kickass.to/usearch/" + URLEncoder.encode(searchTerms, "UTF-8") + "/?field=time_add&sorder=desc"); + return new HttpQuery("https://kat.cr/usearch/" + URLEncoder.encode(searchTerms, "UTF-8") + "/?field=time_add&sorder=desc"); } catch (UnsupportedEncodingException uee1) { /* will not happen. */ return null; diff --git a/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java b/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java index 956334c..41c3b6c 100644 --- a/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java +++ b/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java @@ -64,7 +64,7 @@ public class KickAssTorrentsWatcher extends DefaultWatcher { */ private static Query createHttpQuery(String searchTerms) { try { - return new HttpQuery("https://kickass.to/usearch/" + URLEncoder.encode(searchTerms, "UTF-8") + "/?field=time_add&sorder=desc"); + return new HttpQuery("https://kat.cr/usearch/" + URLEncoder.encode(searchTerms, "UTF-8") + "/?field=time_add&sorder=desc"); } catch (UnsupportedEncodingException uee1) { /* will not happen. */ return null; diff --git a/src/test/java/net/pterodactylus/rhynodge/filters/torrents/KickAssTorrentsFilterTest.java b/src/test/java/net/pterodactylus/rhynodge/filters/torrents/KickAssTorrentsFilterTest.java index 92868c1..75a9c09 100644 --- a/src/test/java/net/pterodactylus/rhynodge/filters/torrents/KickAssTorrentsFilterTest.java +++ b/src/test/java/net/pterodactylus/rhynodge/filters/torrents/KickAssTorrentsFilterTest.java @@ -25,7 +25,7 @@ public class KickAssTorrentsFilterTest { private final Document document; public KickAssTorrentsFilterTest() throws IOException { - document = ResourceLoader.loadDocument(getClass(), "kickass-to-results.html", "https://kickass.to/"); + document = ResourceLoader.loadDocument(getClass(), "kickass-to-results.html", "https://kat.cr/"); } @Test -- 2.7.4