From: David ‘Bombe’ Roden Date: Wed, 26 Aug 2015 04:20:37 +0000 (+0200) Subject: Use new hostname for KickAssTorrents X-Git-Tag: v2~174 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e76eb2e775937956010cabfc87fff91f3245a2db;p=rhynodge.git Use new hostname for KickAssTorrents --- 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