Use The Pirate Bay’s .onion hostname
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 24 Oct 2015 08:41:36 +0000 (10:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 24 Oct 2015 08:41:36 +0000 (10:41 +0200)
src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayEpisodeWatcher.java
src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayWatcher.java

index 9ef3d79..23f9509 100644 (file)
@@ -66,7 +66,7 @@ public class PirateBayEpisodeWatcher extends DefaultWatcher {
 
        private static Query createHttpQuery(String searchTerms, String proxyHost, int proxyPort) {
                try {
-                       return new HttpQuery("http://thepiratebay.org/search/" + URLEncoder.encode(searchTerms, "UTF-8") + "/0/3/0", proxyHost, proxyPort);
+                       return new HttpQuery("http://uj3wazyk5u4hnvtk.onion/search/" + URLEncoder.encode(searchTerms, "UTF-8") + "/0/3/0", proxyHost, proxyPort);
                } catch (UnsupportedEncodingException uee1) {
                        /* will not happen. */
                        return null;
index b99d6e5..fffee87 100644 (file)
@@ -72,7 +72,7 @@ public class PirateBayWatcher extends DefaultWatcher {
         */
        private static Query createHttpQuery(String searchTerms, String proxyHost, int proxyPort) {
                try {
-                       return new HttpQuery("http://thepiratebay.org/search/" + URLEncoder.encode(searchTerms, "UTF-8") + "/0/3/0", proxyHost, proxyPort);
+                       return new HttpQuery("http://uj3wazyk5u4hnvtk.onion/search/" + URLEncoder.encode(searchTerms, "UTF-8") + "/0/3/0", proxyHost, proxyPort);
                } catch (UnsupportedEncodingException uee1) {
                        /* will not happen. */
                        return null;