Use new hostname for KickAssTorrents
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Aug 2015 04:20:37 +0000 (06:20 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Aug 2015 04:20:37 +0000 (06:20 +0200)
src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java
src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java
src/test/java/net/pterodactylus/rhynodge/filters/torrents/KickAssTorrentsFilterTest.java

index 7c4d933..e086e75 100644 (file)
@@ -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;
index 956334c..41c3b6c 100644 (file)
@@ -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;
index 92868c1..75a9c09 100644 (file)
@@ -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