X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Frhynodge%2Fwatchers%2FTorrentHoundWatcher.java;h=4df53a688f10b70f68b669b00f2819d6431f1edc;hb=15e9d53a33f0b1b6070243d7d3f1aba4c647f38c;hp=268054e1471b39bdaab9e281b81d4d407214dad0;hpb=9a861b080a62255875650c55d11dcdab2e20ff6f;p=rhynodge.git diff --git a/src/main/java/net/pterodactylus/rhynodge/watchers/TorrentHoundWatcher.java b/src/main/java/net/pterodactylus/rhynodge/watchers/TorrentHoundWatcher.java index 268054e..4df53a6 100644 --- a/src/main/java/net/pterodactylus/rhynodge/watchers/TorrentHoundWatcher.java +++ b/src/main/java/net/pterodactylus/rhynodge/watchers/TorrentHoundWatcher.java @@ -25,11 +25,11 @@ import java.util.List; import net.pterodactylus.rhynodge.Filter; import net.pterodactylus.rhynodge.Query; -import net.pterodactylus.rhynodge.Trigger; import net.pterodactylus.rhynodge.filters.HtmlFilter; +import net.pterodactylus.rhynodge.filters.SizeBlacklistFilter; import net.pterodactylus.rhynodge.filters.torrents.TorrentHoundFilter; +import net.pterodactylus.rhynodge.mergers.TorrentMerger; import net.pterodactylus.rhynodge.queries.HttpQuery; -import net.pterodactylus.rhynodge.triggers.NewEpisodeTrigger; import com.google.common.collect.ImmutableList; @@ -48,7 +48,7 @@ public class TorrentHoundWatcher extends DefaultWatcher { * The terms to search for */ public TorrentHoundWatcher(String searchTerms) { - super(createHttpQuery(searchTerms), createFilters(), createTrigger()); + super(createHttpQuery(searchTerms), createFilters(), new TorrentMerger()); } // @@ -77,16 +77,7 @@ public class TorrentHoundWatcher extends DefaultWatcher { * @return The filters of the watcher */ private static List createFilters() { - return ImmutableList.of(new HtmlFilter(), new TorrentHoundFilter(), createDefaultBlacklistFilter()); - } - - /** - * Creates the trigger of the watcher. - * - * @return The trigger of the watcher - */ - private static Trigger createTrigger() { - return new NewEpisodeTrigger(); + return ImmutableList.of(new HtmlFilter(), new TorrentHoundFilter(), createDefaultBlacklistFilter(), new SizeBlacklistFilter()); } }