From: David ‘Bombe’ Roden Date: Sun, 27 Oct 2013 13:36:46 +0000 (+0100) Subject: Include blacklist in all torrent watchers. X-Git-Tag: v2~269 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f1bcc9256ec4431e559a0f43f4e73b73da9463be;p=rhynodge.git Include blacklist in all torrent watchers. --- diff --git a/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java b/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java index 42b22bc..d3adbcf 100644 --- a/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java +++ b/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsEpisodeWatcher.java @@ -17,6 +17,8 @@ package net.pterodactylus.rhynodge.watchers; +import static net.pterodactylus.rhynodge.filters.BlacklistFilter.createDefaultBlacklistFilter; + import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.List; @@ -77,7 +79,7 @@ public class KickAssTorrentsEpisodeWatcher extends DefaultWatcher { * @return The filters of the watcher */ private static List createFilters() { - return ImmutableList.of(new HtmlFilter(), new KickAssTorrentsFilter(), new EpisodeFilter()); + return ImmutableList.of(new HtmlFilter(), new KickAssTorrentsFilter(), createDefaultBlacklistFilter(), new EpisodeFilter()); } /** diff --git a/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java b/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java index 8921287..d34c20b 100644 --- a/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java +++ b/src/main/java/net/pterodactylus/rhynodge/watchers/KickAssTorrentsWatcher.java @@ -17,6 +17,8 @@ package net.pterodactylus.rhynodge.watchers; +import static net.pterodactylus.rhynodge.filters.BlacklistFilter.createDefaultBlacklistFilter; + import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.List; @@ -75,7 +77,7 @@ public class KickAssTorrentsWatcher extends DefaultWatcher { * @return The filters of the watcher */ private static List createFilters() { - return ImmutableList.of(new HtmlFilter(), new KickAssTorrentsFilter()); + return ImmutableList.of(new HtmlFilter(), new KickAssTorrentsFilter(), createDefaultBlacklistFilter()); } /** diff --git a/src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayEpisodeWatcher.java b/src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayEpisodeWatcher.java index 901498e..fe18770 100644 --- a/src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayEpisodeWatcher.java +++ b/src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayEpisodeWatcher.java @@ -17,6 +17,8 @@ package net.pterodactylus.rhynodge.watchers; +import static net.pterodactylus.rhynodge.filters.BlacklistFilter.createDefaultBlacklistFilter; + import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.List; @@ -76,7 +78,7 @@ public class PirateBayEpisodeWatcher extends DefaultWatcher { * @return The filters of the watcher */ private static List createFilters() { - return ImmutableList.of(new HtmlFilter(), new PirateBayFilter(), new EpisodeFilter()); + return ImmutableList.of(new HtmlFilter(), new PirateBayFilter(), createDefaultBlacklistFilter(), new EpisodeFilter()); } /** diff --git a/src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayWatcher.java b/src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayWatcher.java index e563883..77fbf4d 100644 --- a/src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayWatcher.java +++ b/src/main/java/net/pterodactylus/rhynodge/watchers/PirateBayWatcher.java @@ -17,6 +17,8 @@ package net.pterodactylus.rhynodge.watchers; +import static net.pterodactylus.rhynodge.filters.BlacklistFilter.createDefaultBlacklistFilter; + import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.List; @@ -75,7 +77,7 @@ public class PirateBayWatcher extends DefaultWatcher { * @return The filters of the watcher */ private static List createFilters() { - return ImmutableList.of(new HtmlFilter(), new PirateBayFilter()); + return ImmutableList.of(new HtmlFilter(), new PirateBayFilter(), createDefaultBlacklistFilter()); } /**